django-softhyphen icon indicating copy to clipboard operation
django-softhyphen copied to clipboard

Remove closing line break tags

Open tom-mi opened this issue 8 years ago • 1 comments

Beautifulsoup adds unwanted closing line break tags when opening linebreak tags are present. This might rather be a bug in beautifulsoup, but it seems unlikely to get fixed there (see http://henry.precheur.org/python/beautiful_soup.html). Also, I am not very happy with this workaround for the problem, but other alternatives seem worse (e.g. using lxml instead of html.parser also works around the problem, as lxml replaces <br> with <br/>).

tom-mi avatar Dec 11 '16 14:12 tom-mi

Coverage Status

Coverage increased (+0.08%) to 98.077% when pulling 3c85db8eb993d1ad67166240a0e1a44fc08f34b4 on tom-mi:master into c3dd1390324b33938ce45ae63c110a0a244f5f87 on datadesk:master.

coveralls avatar Dec 11 '16 15:12 coveralls