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:
fa25360
)
Rather than remove them, turn into comment code-y lines from post-code gap fields...
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 27 Apr 2025 17:05:33 +0000
(19:05 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 27 Apr 2025 17:05:33 +0000
(19:05 +0200)
src/ledgplom/ledger.py
patch
|
blob
|
history
diff --git
a/src/ledgplom/ledger.py
b/src/ledgplom/ledger.py
index 00db77da3afc87f9715fb9e5caf610b30f6af9bd..dcf8b841266b097aff66549d0903883ffe58d7af 100644
(file)
--- a/
src/ledgplom/ledger.py
+++ b/
src/ledgplom/ledger.py
@@
-179,6
+179,8
@@
class _GapLine(_DatLineSubclass):
@classmethod
def from_dat(cls, dat_line: _DatLine) -> Self:
+ if dat_line.code: # if .code, turn whole line into comment
+ return cls('', dat_line.raw)
return cls('', dat_line.comment)