Alir3z4 / Alir3z4/html2text

inline tags within strong/strike/u/i/em/... do not handle spaces correctly

Abierto
#371 0 comentarios 0 reacciones 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

Some inline tags require removing space between text and markdown (`TEXT ` => `**TEXT**`)

When adding another inline tag within these tags space removal does not work proper any more:
```python
from html2text import html2text
print(html2text("X"))) # returns "**X**" => OK
print(html2text("X "))) # returns "**X**" => OK
print(html2text("X "))) # returns "**X **" => INVALID (expected "**X**")
print(html2text("X Y"))) # returns "**XY**" => INVALID (expected "**X Y**")
```

- Version by `html2text --version`: 2020.1.16
- Python version `python --version`: 3.6.3

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.