retronews

a featureful fork of the luke8086/retronews hn+lobste.rs tui
Log | Files | Refs | README | LICENSE

commit 36b1785c1374dbc540a5da4c34939c96f2922c76
parent 5983928ff7cb3a39fe50323f2d61a8df04aead8d
Author: luke8086 <55237178+luke8086@users.noreply.github.com>
Date:   Thu, 28 Jul 2022 20:32:46 +0000

Only strip leading/trailing newlines, preserve spaces

Diffstat:
Mretronews.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/retronews.py b/retronews.py @@ -254,7 +254,7 @@ def parse_html(html: str) -> str: parser = HTMLParser() parser.feed(html) parser.close() - return parser.text.strip() + return parser.text.strip("\n") def wrap_paragraph(text: str) -> list[str]: