1
0
zrcadlo https://github.com/mt-mods/signs_lib.git synchronizováno 2025-12-26 12:45:24 +01:00

fix empty lines being skipped

Tento commit je obsažen v:
Vanessa Dannenberg
2019-09-21 22:04:24 -04:00
rodič d41e2ffd73
revize e4336e320c

Zobrazit soubor

@@ -665,7 +665,7 @@ end
function signs_lib.split_lines_and_words(text) function signs_lib.split_lines_and_words(text)
if not text then return end if not text then return end
local lines = { } local lines = { }
for _, line in ipairs(text:split("\n")) do for _, line in ipairs(text:split("\n", true)) do
table.insert(lines, line:split(" ")) table.insert(lines, line:split(" "))
end end
return lines return lines