It wasn't detecting tabs as a valid whitespace between HTML tags, causing it to transform:
<div>\n\t<p></p>\n</div>
into:
<div>\n\t\n<p></p>\n</div>
Notice that the transformed text has an extra new line after the tab character. Normally extra new lines are removed, but with --preserve-blank-lines, this extra new line persists.
Note:
--preserve-blank-lines and --max-blank-lines are incompatible with each other (I think this was true before my PR). Since --max-blank-lines preserves blank lines as well, it would make a lot of sense to combine the two options into one.
Resolves: #812
It wasn't detecting tabs as a valid whitespace between HTML tags, causing it to transform:
<div>\n\t<p></p>\n</div>
into:<div>\n\t\n<p></p>\n</div>
Notice that the transformed text has an extra new line after the tab character. Normally extra new lines are removed, but with
--preserve-blank-lines
, this extra new line persists.Note:
--preserve-blank-lines
and--max-blank-lines
are incompatible with each other (I think this was true before my PR). Since--max-blank-lines
preserves blank lines as well, it would make a lot of sense to combine the two options into one.