On Tuesday, 5 Jan 2021 at 16:35, Uwe Brauer wrote: > Yeah, your solution does not work for the example I had in mind > but I realize now what I miss: the output should be an org table
If the ledger formatting options cannot help you (they are potentially quite powerful), all I can suggest is a post-processing script (e.g. with sed or awk or equivalent) that massages the output from ledger into a form you like. Hope you get something working to your satisfaction. Ledger is an excellent text based accounting tool. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-166-g291993