From: Christian Heller Date: Mon, 2 Feb 2026 05:15:17 +0000 (+0100) Subject: Fix loss of gap lines on edit posting. X-Git-Url: https://plomlompom.com/repos/booking/static/%7B%7Bdb.prefix%7D%7D/foo.html?a=commitdiff_plain;h=f465cfa00143a483954795957659a76c3676c396;p=ledgplom Fix loss of gap lines on edit posting. --- diff --git a/src/ledgplom/http.py b/src/ledgplom/http.py index 2198a94..6eaf6c9 100644 --- a/src/ledgplom/http.py +++ b/src/ledgplom/http.py @@ -110,7 +110,7 @@ class _Handler(PlomHttpHandler): if comment: line_raw = SPACE.join((line_raw, SEP_COMMENTS, comment)) new_lines += [line_raw] - new_lines += self.postvars.first('raw_lines').splitlines() + new_lines = self.postvars.first('raw_lines').splitlines() + new_lines new_id = self.server.ledger.rewrite_block(old_id, new_lines) return Path('/', self.pagename, f'{new_id}')