Skip to content

Commit

Permalink
stop forcing tree mode for now, need is unclear (fixes #552)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed May 23, 2017
1 parent a5b545c commit 6c95909
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions hledger/Hledger/Cli/BalanceView.hs
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,6 @@ balanceviewReport BalanceView{..} CliOpts{command_=cmd, reportopts_=ropts, rawop
PeriodChange -> "(Balance Changes)"
CumulativeChange -> "(Cumulative Ending Balances)"
HistoricalBalance -> "(Historical Ending Balances)"
ropts' = treeIfNotPeriod $
ropts { balancetype_ = balancetype }
treeIfNotPeriod = case (balancetype, interval_ ropts) of
-- For --historical/--cumulative, we must use multiBalanceReport.
-- (This forces --no-elide.)
-- These settings format the output in a way that we can convert to
-- a normal balance report using singleBalanceReport. See
-- Balance.hs for more information.
(HistoricalBalance, NoInterval) -> \o -> o { accountlistmode_ = ALTree }
(CumulativeChange , NoInterval) -> \o -> o { accountlistmode_ = ALTree }
_ -> id
ropts' = ropts { balancetype_ = balancetype }
merging (Table hLeft hTop dat) (Table hLeft' _ dat') =
Table (T.Group DoubleLine [hLeft, hLeft']) hTop (dat ++ dat')

0 comments on commit 6c95909

Please sign in to comment.