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

Combination of blocks and br tags leads to more empty lines than in browser #280

Open
2 tasks
KillyMXI opened this issue Jan 14, 2023 · 0 comments
Open
2 tasks

Comments

@KillyMXI
Copy link
Member

KillyMXI commented Jan 14, 2023

Minimal HTML example

<div class="">Hello,</div>
<div class=""><br class="" /></div>
<div class="">my name is John Doe.</div>
<div class=""><br class="" /></div>
<div class=""><br class="" /></div>
<div class="">
  Best regards, John<br class="" />
  <div>

Options

{}

Observed output

Hello,


my name is John Doe.



Best regards, John

Expected output (as can be seen when opened in browser)

Hello,

my name is John Doe.


Best regards, John

Version information

  • html-to-text: 9.0.3
  • node: 14

Related:

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

1 participant