mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[chore] replace utf8 bytes with Unicode escape sequence
This commit is contained in:
@@ -946,7 +946,7 @@ function KoptInterface:getTextFromBoxes(boxes, pos0, pos1)
|
||||
-- Previous line ended with a minus.
|
||||
-- Assume it's some hyphenation and discard it.
|
||||
line_text = line_text:sub(1, -2)
|
||||
elseif line_text:sub(-2, -1) == "\xC2\xAD" then
|
||||
elseif line_text:sub(-2, -1) == "\u{00AD}" then
|
||||
-- Previous line ended with a hyphen.
|
||||
-- Assume it's some hyphenation and discard it.
|
||||
line_text = line_text:sub(1, -3)
|
||||
|
||||
Reference in New Issue
Block a user