Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<br> does not continue quote #114

Closed
aykevl opened this issue Jan 31, 2016 · 1 comment
Closed

<br> does not continue quote #114

aykevl opened this issue Jan 31, 2016 · 1 comment

Comments

@aykevl
Copy link

aykevl commented Jan 31, 2016

Example:

>>> import html2text
>>> h = html2text.HTML2Text()
>>> h.handle('a<blockquote>b<br>c</blockquote>')
u'a\n\n> b  \nc\n\n'
>>> print h.handle('a<blockquote>b<br>c</blockquote>')
a

> b  
c

The newlines are not preserved in the output. I would expect:

a

> b  
> c

Just like in this HTML:

a
b
c
theSage21 added a commit to theSage21/html2text that referenced this issue May 27, 2016
@theSage21
Copy link
Collaborator

8ccd470 solves this.

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

No branches or pull requests

2 participants