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

Blank lines created by <br> cannot be parsed correctly #23

Open
luyuhuang opened this issue Dec 28, 2019 · 3 comments
Open

Blank lines created by <br> cannot be parsed correctly #23

luyuhuang opened this issue Dec 28, 2019 · 3 comments

Comments

@luyuhuang
Copy link

Hi all,

When I try to convert the following html to plain text:

<div>aaa</div>
<br>
<div>bbb</div>

the output is

aaa
bbb

but I think there should be a blank line between aaa and bbb. I try to read the code and found that the blank line created by <br> is ignored because of context.prev is _NEWLINE(created by the previous <div>). Is there a way to solve this problem? Thank you very much.

@lopuhin
Copy link
Contributor

lopuhin commented Dec 28, 2019

I agree that an extra newline makes sense here 👍

@printROSHN
Copy link

Is this issue still open , can i have a go on it ?

@lopuhin
Copy link
Contributor

lopuhin commented Jan 10, 2023

@printROSHN yes, that would be great!

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

3 participants