Module:Delink: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(deal with multiple-line external links) |
(Reorder whitespace testing) |
||
Line 161: | Line 161: | ||
end |
end |
||
if not (args.whitespace == "no") then |
if not (args.whitespace == "no") then |
||
⚫ | |||
text = mw.ustring.gsub(text, "([^\n])(\n)([^\n])", "%1 %3") -- Remove single new lines (but not double new lines). |
text = mw.ustring.gsub(text, "([^\n])(\n)([^\n])", "%1 %3") -- Remove single new lines (but not double new lines). |
||
⚫ | |||
end |
end |
||
return text |
return text |