Strip leading/trailing whitespace for links and inline code
Đang mở
- 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ả
It would be great if the fix from #177 for #142, which strips leading and trailing whitespace for emphasis/strong/underline/strikethrough, could also be applied to links and inline code where [leading and trailing space is stripped for `white-space: normal`](https://www.w3.org/TR/css-text-3/#white-space-rules).
html2text.html2text('\nExample\n')
'[ Example ](https://example.com)\n\n'
>>> html2text.html2text('\nx = 1\n')
'` x = 1 `\n\n'
- Version by `html2text --version`: 2020.1.16 (a3ed67b)
- Test script: See above.
- Python version `python --version`: 3.9.10
Related: #371
Thanks,
Kevin
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.