inline tags within strong/strike/u/i/em/... do not handle spaces correctly
Offen
- Vorherrschende Sprache
- Python
- Sterne
- 2.2k
- Forks
- 296
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.