Alir3z4 / Alir3z4/html2text

Unexpected whitespaces caused by <br>

Đang mở
#199 3 bình luận 1 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ả

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

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.