Alir3z4 / Alir3z4/html2text

Unexpected whitespaces caused by <br>

Abierto
#199 3 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
2.2k
Forks
296
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

- 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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.