retronews

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

commit c651c5a91e493f2559fb7e3a0d9dd1011ff09b34
parent 395941e17c542256c5ef22a3d509eb27605dc332
Author: luke8086 <55237178+luke8086@users.noreply.github.com>
Date:   Fri, 22 Jul 2022 20:13:46 +0000

Don't break urls in text wrapping

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

diff --git a/retronews.py b/retronews.py @@ -124,7 +124,7 @@ def wrap_paragraph(text: str) -> List[str]: # Preserve quotation symbols in subsequent lines match = QUOTE_REX.match(text) quote_symbols = match[0] if match else "" - return wrap(text, subsequent_indent=quote_symbols) + return wrap(text, subsequent_indent=quote_symbols, break_on_hyphens=False, break_long_words=False) def fetch(url: str) -> str: