Module:Lang: Difference between revisions

m Added move slow postfix override
LVL (talk | contribs)
Corrected a bug that broke keybind wikitext and removed extra space before colons.
Line 207: Line 207:
     -- Force spaces around keybinds where the source data omits them
     -- Force spaces around keybinds where the source data omits them
    text = text:gsub("([a-zA-Z])'''", "%1 '''")
     text = text:gsub("'''([a-zA-Z])", "''' %1")
     text = text:gsub("'''([a-zA-Z])", "''' %1")
    -- Clean up extra spaces between a keybind and following punctuation
    text = text:gsub("'''%s+:", "''':")


return frame:preprocess(text)
return frame:preprocess(text)