From: Simon Tatham Date: Thu, 7 Dec 2023 05:22:03 +0000 (+0000) Subject: Space out the ... at the end of a boost/fave record. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=a499e5b8763d1c3398cf4da4d32bf98e4c402514;p=mastodonochrome.git Space out the ... at the end of a boost/fave record. --- diff --git a/text.py b/text.py index dbaebe5..7e1de02 100644 --- a/text.py +++ b/text.py @@ -328,7 +328,10 @@ class NotificationLog: except StopIteration: yield line return - line = next(line.split(width-3)) + ColouredString("...") + line = next(line.split(width-3)) + if line.width < width-3: + line += ColouredString(" ") + line += ColouredString("...") yield line class HTMLParser(html.parser.HTMLParser):