Module:Delink: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Content added Content deleted
(add (opt-in) code for removing strip markers)
(whitespace test)
Line 152: Line 152:
text = delinkLinkClass(text, "^%[.-%]", delinkURL) -- De-link URLs.
text = delinkLinkClass(text, "^%[.-%]", delinkURL) -- De-link URLs.
end
end
if not (args.whitespace == "no") then
-- if not (args.whitespace == "no") then
text = mw.ustring.gsub(text, "%s+", " ") -- Remove extra whitespace.
-- text = mw.ustring.gsub(text, "%s+", " ") -- Remove extra whitespace.
end
-- end
return text
return text
end
end