mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
handle newlines in exported pdf highlights (#6247)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user