From: Christian Heller Date: Fri, 30 May 2025 20:41:08 +0000 (+0200) Subject: Indent lines in log display. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/blog?a=commitdiff_plain;h=3c62c2c399a653d78bb0bb2b1f616ae87a35adae;p=ircplom Indent lines in log display. --- diff --git a/ircplom.py b/ircplom.py index 21cda8c..fe5e37c 100755 --- a/ircplom.py +++ b/ircplom.py @@ -94,7 +94,8 @@ class Terminal: def wrap(self, line: str) -> list[str]: 'Wrap line to list of lines fitting into terminal width.' - return self._blessed.wrap(line, width=self.size.x) + return self._blessed.wrap(line, width=self.size.x, + subsequent_indent=' '*4) def write_yx(self, offset: YX, msg: str) -> None: 'Starting at offset, write line with msg, padded at end with spaces.'