Module:Delink: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
fix whitespace pattern match again - a single line break makes a space
(fix pattern match)
(fix whitespace pattern match again - a single line break makes a space)
Line 157:
if not (args.whitespace == "no") then
text = mw.ustring.gsub(text, "[ \t]+", " ") -- Remove extra tabs and spaces.
text = mw.ustring.gsub(text, "([^\n])(\n)([^\n])", "%1 %3") -- Remove single new lines (but not double new lines).
end
return text
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu