Alir3z4 / Alir3z4/html2text

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

Đang mở
#371 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
2.2k
Fork
296
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.