Difference between revisions of "Module:List"

8 bytes added ,  17:02, 23 November 2013
adjust match
meta>Frietjes
(test fix for technically invalid parameters being passed to type by moving them (if possible) to list_style_type)
meta>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']
Anonymous user