Module:Delimited tag: Difference between revisions

consistency
seems this doesn't break anything; don't mind the uhhh... ternary expression
 
Line 9: Line 9:


local tag = function(txt)
local tag = function(txt)
return '<' .. args['tag'] .. '>' .. txt .. '</' .. args['tag'] .. '>'
return '<' .. args['tag'] .. (args['wordbreak'] and ' style="word-break:break-all"' or '') .. '>' .. txt .. '</' .. args['tag'] .. '>'
end
end
local listLevel = args['list-level'] or '**'
local listLevel = args['list-level'] or '**'