Module:List: Difference between revisions

Jump to navigation Jump to search
m>Frietjes
test fix for technically invalid parameters being passed to type by moving them (if possible) to list_style_type
m>Frietjes
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']