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:
@@ -83,7 +83,7 @@ end
|
||||
function ReaderToc:cleanUpTocTitle(title, replace_empty)
|
||||
title = title:gsub("\13", "")
|
||||
if replace_empty and title:match("^%s*$") then
|
||||
title = "\xE2\x80\x93" -- U+2013 En-Dash
|
||||
title = "\u{2013}" -- En-Dash
|
||||
end
|
||||
return title
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user