home
·
contact
·
privacy
projects
/
ledgplom
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ffe9d0
)
Fix loss of gap lines on edit posting.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 2 Feb 2026 05:15:17 +0000
(06:15 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 2 Feb 2026 05:15:17 +0000
(06:15 +0100)
src/ledgplom/http.py
patch
|
blob
|
history
diff --git
a/src/ledgplom/http.py
b/src/ledgplom/http.py
index 2198a944a17bf2545b59dbef917f9daab5594e94..6eaf6c988c7794bdbc452e2978c01ff026e50236 100644
(file)
--- 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}')