fix indent sytle

This commit is contained in:
union2find
2016-05-15 17:18:38 +08:00
parent 3d89b27e59
commit f8943efdbf
4 changed files with 189 additions and 189 deletions

View File

@@ -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