Module:List: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(test fix for technically invalid parameters being passed to type by moving them (if possible) to list_style_type) |
(adjust match) |
||
Line 67: | Line 67: | ||
root.css('margin-left', indent .. 'em') |
root.css('margin-left', indent .. 'em') |
||
end |
end |
||
if args['type'] and not args['type']:match('[1AaIi]') then |
if args['type'] and not args['type']:match('^%s*[1AaIi]%s*$') then |
||
if not args['list_style_type'] and not args['list-style-type'] then |
if not args['list_style_type'] and not args['list-style-type'] then |
||
args['list_style_type'] = args['type'] |
args['list_style_type'] = args['type'] |