Alir3z4 / Alir3z4/html2text

BUG: Line Feeds getting added

Đang mở
#268 1 bình luận 2 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.7.1

when I convert the following:
```python
description = '

This is a complete rebuild car 351 Windsor! Only 500 kms since rebuild, crest safety power steering all new parts! Must see car 3 speed automatic serious inquires only 36000 take this baby home!

'
```

with:
```python
h = html2text.HTML2Text()
h.ignore_links = True
text_description = h.handle(description)
print(text_description)
```

I get the following output:
`'\n\nThis is a complete rebuild car 351 Windsor! Only 500 kms since rebuild, crest\nsafety power steering all new parts! Must see car 3 speed automatic serious\ninquires only 36000 take this baby home!\n\n'`

Where are the line feeds coming from? If I run just the above text string without html through the html2text handle function it's adding those line feeds as well.

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.