Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Remove closing line break tags #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

tom-mi
Copy link

@tom-mi tom-mi commented Dec 11, 2016

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/>).

- Beautifulsoup adds unwanted closing line break tags when opening
  linebreak tags are present.
@coveralls
Copy link

coveralls commented Dec 11, 2016

Coverage Status

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants