width control for bse output?

22 views
Skip to first unread message

Will Robinson

unread,
Nov 23, 2023, 9:05:41 AM11/23/23
to hle...@googlegroups.com
Hi there,

I do something like full-fledged hledger, where I have a Makefile that auto-generates reports of various kinds, and where I check those in to version control and can look at their diff after I've made journal changes to ensure that things still generally look as expected.

One thing that throws this off is that I'll occasionally add a new commodity or account that changes the width of output for the balancesheetequity ("bse") hledger command. This means the diff is no longer useful across that change, since every line is now "different."

It seems that there are width output formatting options, but they don't appear to apply to bs or bse commands(?).

Thanks as always,
Will

--
Will Robinson (willro...@gmail.com)

Simon Michael

unread,
Nov 23, 2023, 12:16:54 PM11/23/23
to hledger
For comparing diffs, do any of these help:

- --layout wide,MAXWIDTH, --layout bare, --layout tidy...

- not using tree mode if you're using that

- not showing multiple periods if you're using that

- overriding commodity styles with -c, eg limiting precision

- limiting --depth

- -MA --summary

- excluding particular problem accounts/commodities

- generating one report per commodity with cur: ?

- generating csv/tsv/json output ?

- using the balance command instead, and eg --transpose, or a single --period and --format

- using the [a]register command

?

Dmitry Astapov

unread,
Nov 23, 2023, 3:06:16 PM11/23/23
to hle...@googlegroups.com
If your version control allows it, you can also use diff command that ignores whitespace (such as diff -b, wdiff, or patdiff)

--
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/117818D6-490C-46BA-9A44-3F6B444E1698%40joyful.com.


--
D. Astapov

Will Robinson

unread,
Nov 25, 2023, 9:32:06 PM11/25/23
to hle...@googlegroups.com
Thanks to both of you; so many good ideas here and I will work through them ASAP. :-)



--
Will Robinson (willro...@gmail.com)
Reply all
Reply to author
Forward
0 new messages