Alir3z4 / Alir3z4/html2text

Unexpected whitespaces caused by <br>

オープン
#199 コメント 3 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
2.2k
フォーク
296
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。