Content deleted Content added
test |
OliverGalvin (talk | contribs) Treat HTML line breaks like normal newlines when removing excess whitespace |
||
Line 163:
end
if not (args.whitespace == "no") then
text = text:gsub("<br\s*/?>", "\n") -- Replace HTML line breaks with newlines.
-- Replace single new lines with a single space, but leave double new lines
-- and new lines only containing spaces or tabs before a second new line.
|