Open main menu
Home
Random
Log in
Settings
About Linguifex
Disclaimers
Linguifex
Search
Module:script utilities: Difference between revisions
Module
Discussion
← Older edit
Newer edit →
Module:script utilities
(view source)
Revision as of 15:19, 15 September 2021
337 bytes removed
,
15 September 2021
no edit summary
Revision as of 15:17, 15 September 2021
(
view source
)
Sware
(
talk
|
contribs
)
No edit summary
← Older edit
Revision as of 15:19, 15 September 2021
(
view source
)
Sware
(
talk
|
contribs
)
No edit summary
Newer edit →
Line 84:
Line 84:
if not sc then
if not sc then
sc = require("Module:scripts").findBestScript(text, lang)
sc = require("Module:scripts").findBestScript(text, lang)
end
-- Replace space characters with newlines in Mongolian-script text, which is written top-to-bottom.
if sc and sc:getDirection() == "down" and text:find(" ") then
text = munge_text(text, function(txt)
-- having extra parentheses makes sure only the first return value gets through
return (txt:gsub(" +", "<br>"))
end)
end
end
Sware
Bureaucrats
,
Administrators
47,637
edits