* On Sun 10:56AM, 05 Feb 2012, thierry ([email protected]) wrote: > > Related question: is there a way to specify that ledger should not > > reformat comments? > > Here is what I do to keep the format of comments when using 'print' > command: > > ledger --args-only --file file.ledger print |perl -pe 'undef $/; s/\n\s > \s\s\s;/ ;/smg' > file.ledger.print
Thanks, Thierry. If I understand this correctly, the Perl script moves comments that occur on a line by itself to the end of the previous line. I don't have a consistent commenting style in my ledger file -- some comments are on their own lines and others after the amount -- so this also does not completely preserve the comments. Not a big deal, but thanks to John for offering to look into it! -- Best, Hsiu-Khuern.
