jugglerchris / rust-html2text

Rust library to render HTML as text.
MIT License
152 stars 27 forks source link

Fix #171 #172

Closed jugglerchris closed 1 week ago

jugglerchris commented 1 week ago

We were allocating a vector sized for the total number of table columns, taking account of colspan. This goes wrong when there's a ridiculous colspan (an example was ~1<<53). Instead count the number of column indices where a cell starts, and renumber everything to collapse duplicate spans.