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

dataTable empty tr -> all following rows missing #282

Closed
mrNuTz opened this issue Jan 30, 2023 · 2 comments
Closed

dataTable empty tr -> all following rows missing #282

mrNuTz opened this issue Jan 30, 2023 · 2 comments

Comments

@mrNuTz
Copy link

mrNuTz commented Jan 30, 2023

Minimal HTML example

<table><tr></tr><tr><td>foo</td></tr></table>

Options

{
  selectors: [
    {selector: 'table', format: 'dataTable'},
  ]
]

Observed output

Expected output

foo

Version information

  • html-to-text: 9.0.3
  • node: v18.13.0

second minimal html example

Different numbers of td's per tr also cause missing output.

<table><tr><td>foo</td></tr><tr><td>foo</td><td>bar</td></tr></table>

Observed output

foo
foo

Expected output

foo
foo   bar
@KillyMXI
Copy link
Member

Good catch, thank you for the report.

@KillyMXI
Copy link
Member

Fixed in version 9.0.4

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