mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix indent sytle
This commit is contained in:
@@ -101,11 +101,11 @@ end
|
||||
-- @text: the string to be splitted.
|
||||
-- @tab: the table to store the chars sequentially, must not be nil.
|
||||
function util.splitToChars(text, tab)
|
||||
if text == nil then return end
|
||||
if text == nil then return end
|
||||
-- clear
|
||||
for k, v in pairs(tab) do
|
||||
tab[k] = nil
|
||||
end
|
||||
tab[k] = nil
|
||||
end
|
||||
local prevcharcode, charcode = 0
|
||||
for uchar in string.gfind(text, "([%z\1-\127\194-\244][\128-\191]*)") do
|
||||
charcode = BaseUtil.utf8charcode(uchar)
|
||||
@@ -118,7 +118,7 @@ end
|
||||
|
||||
-- Test whether a string could be separated by a char for multi-line rendering
|
||||
function util.isSplitable(c)
|
||||
return #c > 1 or c == " " or string.match(c, "%p") ~= nil
|
||||
return #c > 1 or c == " " or string.match(c, "%p") ~= nil
|
||||
end
|
||||
|
||||
return util
|
||||
|
||||
Reference in New Issue
Block a user