[chore] replace utf8 bytes with Unicode escape sequence

This commit is contained in:
poire-z committed 2023-08-02 01:28:24 +02:00
1 parent 7bff61150a
commit 626864f856
15 files changed
+54 -54

No files matched your search

+1 -1
View File
@@ -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)