1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 08:20:21 +01:00

Fix word wrapping

This commit is contained in:
Diego Martinez 2014-09-08 00:46:44 -03:00
parent 484fde70f2
commit 9901cd6dde

View File

@ -333,7 +333,7 @@ local function 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")) do
table.insert(lines, { line }) table.insert(lines, line:split(" "))
end end
return lines return lines
end end