Module:script utilities: Difference between revisions
No edit summary Tag: Reverted |
Tag: Undo |
||
| Line 280: | Line 280: | ||
-- Replace space characters with newlines in Mongolian-script text, which is written top-to-bottom. | -- Replace space characters with newlines in Mongolian-script text, which is written top-to-bottom. | ||
if sc:getDirection():find("vertical", nil, true) and text:find(" ", nil, true) | if sc:getDirection():find("vertical", nil, true) and text:find(" ", nil, true) then | ||
text = munge_text(text, function(txt) | text = munge_text(text, function(txt) | ||
-- having extra parentheses makes sure only the first return value gets through | -- having extra parentheses makes sure only the first return value gets through | ||