From e144ad4ccda88701620310106c442cbdf60d280c Mon Sep 17 00:00:00 2001 From: Henning Thielemann Date: Fri, 18 Oct 2024 19:51:05 +0200 Subject: [PATCH] cli: Cli.Commands.Balance: give table names according to report type --- hledger/Hledger/Cli/Commands/Balance.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hledger/Hledger/Cli/Commands/Balance.hs b/hledger/Hledger/Cli/Commands/Balance.hs index 816d6140d..d5678cde1 100644 --- a/hledger/Hledger/Cli/Commands/Balance.hs +++ b/hledger/Hledger/Cli/Commands/Balance.hs @@ -394,7 +394,7 @@ balance opts@CliOpts{reportspec_=rspec} j = case balancecalc_ ropts of "html" -> (<>"\n") . L.renderText . printHtml . map (map (fmap L.toHtml)) . budgetReportAsSpreadsheet ropts "fods" -> printFods IO.localeEncoding . - Map.singleton "Hledger" . (,) (Just 1, Nothing) . budgetReportAsSpreadsheet ropts + Map.singleton "Budget Report" . (,) (Just 1, Nothing) . budgetReportAsSpreadsheet ropts _ -> error' $ unsupportedOutputFormatError fmt writeOutputLazyText opts $ render budgetreport @@ -407,7 +407,7 @@ balance opts@CliOpts{reportspec_=rspec} j = case balancecalc_ ropts of "html" -> (<>"\n") . L.renderText . multiBalanceReportAsHtml ropts "json" -> (<>"\n") . toJsonText "fods" -> printFods IO.localeEncoding . - Map.singleton "Hledger" . multiBalanceReportAsSpreadsheet ropts + Map.singleton "Multi-period Balance Report" . multiBalanceReportAsSpreadsheet ropts _ -> const $ error' $ unsupportedOutputFormatError fmt -- PARTIAL: writeOutputLazyText opts $ render report @@ -420,7 +420,7 @@ balance opts@CliOpts{reportspec_=rspec} j = case balancecalc_ ropts of "html" -> (<>"\n") . L.renderText . printHtml . map (map (fmap L.toHtml)) . balanceReportAsSpreadsheet ropts "json" -> (<>"\n") . toJsonText - "fods" -> printFods IO.localeEncoding . Map.singleton "Hledger" . (,) (Just 1, Nothing) . balanceReportAsSpreadsheet ropts + "fods" -> printFods IO.localeEncoding . Map.singleton "Balance Report" . (,) (Just 1, Nothing) . balanceReportAsSpreadsheet ropts _ -> error' $ unsupportedOutputFormatError fmt -- PARTIAL: writeOutputLazyText opts $ render report where