Module:Delink: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(handle multiple-line links) |
(try removing slashes from newlin-matching pattern) |
||
Line 157: | Line 157: | ||
if not (args.whitespace == "no") then |
if not (args.whitespace == "no") then |
||
text = mw.ustring.gsub(text, "[ \t]+", " ") -- Remove extra tabs and spaces. |
text = mw.ustring.gsub(text, "[ \t]+", " ") -- Remove extra tabs and spaces. |
||
text = mw.ustring.gsub(text, "[^ |
text = mw.ustring.gsub(text, "[^\n](\n)[^\n]", "") -- Remove single new lines (but not double new lines). |
||
end |
end |
||
return text |
return text |