handle newlines in exported pdf highlights (#6247)

reviewable/pr6253/r1
Martín Fernández 4 years ago committed by GitHub
parent c1be488a11
commit d87b09d11c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -826,6 +826,9 @@ function KoptInterface:getTextFromBoxes(boxes, pos0, pos1)
line_text = line_text..word..space
end
end
-- append a space at the end of the line unless its a hyphenated word
line_text = line_text .. " "
line_text = line_text:gsub("- $", "")
-- insert line box
local lb = boxes[i]
if i > i_start and i < i_stop then

Loading…
Cancel
Save