Module:Redirect template: Difference between revisions

add a \n before closing div incase the info text contains a list item
(xfer from sandbox per edit request at template talk page)
(add a \n before closing div incase the info text contains a list item)
Line 45:
local beCompatibleWithBug12974 = args.info and (args.info:find('^[:;#*]', 1) == 1 or args.info:find('{|', 1, true) == 1) and '\n' or ' '
local content = string.format('\n<div class="rcat %s">\n*%sThis is a redirect%s%s.%s%s\n</div>',
args.class or '',
args.name and getPrettyName(args) or '',
Anonymous user