Module:Navbox/sandbox: Difference between revisions

Content deleted Content added
simplify the addNewline function - whitespace will be trimmed from named arguments anyway, and { and | don't have any special meaning in Lua patterns
m whoops, not sure how the backslash crept in there
Line 19:
 
function addNewline(s)
if s:match('^[\*:;#]') or s:match('^{|') then
return '\n' .. s
else