fix empty lines being skipped

This commit is contained in:
Vanessa Dannenberg 2019-09-21 22:04:24 -04:00
parent d41e2ffd73
commit e4336e320c
1 changed files with 1 additions and 1 deletions

View File

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