Module:script utilities: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 54: Line 54:
-- 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() == "down" and text:find(" ") then
--[[if sc:getDirection() == "down" and text:find(" ") then
text = require("Module:munge_text")(text, function(txt)
text = require("Module: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
return (txt:gsub(" +", "<br>"))
return (txt:gsub(" +", "<br>"))
end)
end)
end
end]]


-- Hack Korean script text to remove hyphens.
-- Hack Korean script text to remove hyphens.

Navigation menu