Alir3z4 / Alir3z4/html2text

Unexpected whitespaces caused by <br>

Aperta
#199 3 commenti 1 reazione 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

- html2text version: `2018.1.9`
- Python version `3.6.4`

Using the following code I get unexpected whitespaces in front of each `
` which got replaced by `\n`:
```
>>> import html2text
>>> h = html2text.HTML2Text()
>>> h.single_line_break = True
>>> h.handle("foo


bar")
'foo \n \n \nbar\n\n'
```

Additionally the `single_line_break` setting doesn't seem to have any effect at all.

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.