Alir3z4 / Alir3z4/html2text

colspan is entirely ignored, which results in misformated tables

Aperta
#367 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
2.2k
Fork
296
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

For example this test:
`echo 'AB123' | html2text --pad-tables`

Output is currently weirdly mangled with incorrect columns:
```
A | B
----|----
1 | 2 | 3
```

Today I learned: markdown bizarrely has no defined way of dealing with colspan or rowspan. The correct syntax is undefined here, but adding a blank dummy cell seems to be the best option at the moment, so the output should be:

```
A | | B
---|---|---
1 | 2 | 3
```

Or as shown here in github's implementation of markdown:

A | | B
---|---|---
1 | 2 | 3

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.