Skip to content

simple balance report's tree layout is disrupted by --layout=bare #2470

@simonmichael

Description

@simonmichael

This bug seems to have existed since --layout was added in hledger 1.24. Notice how the last of these reports does not have the proper indentation showing account hierarchy:

2025-10-01
  a
  a:aa         1
$ hledger -f a.journal bal -tNY
Balance changes in 2025:

      || 2025 
======++======
 a    ||    0 
   aa ||    1 

$ hledger -f a.journal bal -tNY --layout bare
Balance changes in 2025:

      || Commodity  2025 
======++=================
 a    ||               0 
   aa ||               1 

$ hledger -f a.journal bal -tN
                   0  a
                   1    aa

$ hledger -f a.journal bal -tN --layout bare
 0    a  
 1    aa 

However, in larger balance reports I do seem to see indentation. So this repro isn't quite pinned down yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-BUGSomething wrong, confusing or sub-standard in the software, docs, or user experience.affects4-manyAffects potentially a significant number of users.annoyance2-minorMinor to moderate usability/doc bug, reasonably easy to avoid or tolerate.balance

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions