Modul:Sidebar: Unterschied zwischen den Versionen
apply automatic newlines
imported>Toohool (newline fix) |
imported>Toohool (apply automatic newlines) |
||
| Zeile 268: | Zeile 268: | ||
for k, v in pairs(origArgs) do | for k, v in pairs(origArgs) do | ||
if v ~= '' then | if v ~= '' then | ||
-- Apply automatic newlines ([[meta:Help:Newlines and spaces#Automatic newline]]) to | |||
-- simulate template behavior. | |||
if mw.ustring.find(v, '^[#*:;]') or mw.ustring.find(v, '^{|') then | |||
v = '\n' .. v | |||
end | |||
args[k] = v | args[k] = v | ||
end | end | ||