handle newlines in exported pdf highlights (#6247)

This commit is contained in:
Martín Fernández
2020-06-09 17:07:51 +02:00
committed by GitHub
parent c1be488a11
commit d87b09d11c

View File

@@ -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