From 8d1b1fbfc52e4242d4f528e4ad3f3dd0223e9d5d Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 29 Mar 2017 08:13:09 -0700 Subject: [PATCH] cli: fix a commands list error when no addons are in path --- hledger/Hledger/Cli/Main.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hledger/Hledger/Cli/Main.hs b/hledger/Hledger/Cli/Main.hs index ba65977a8..14242388a 100644 --- a/hledger/Hledger/Cli/Main.hs +++ b/hledger/Hledger/Cli/Main.hs @@ -264,7 +264,6 @@ Misc: rewrite add automated postings to certain transactions test run some self tests OTHERCMDS - Help: (see also -h, CMD -h, --help|---man|--info) help|man|info show any of the hledger manuals in text/man/info format |] @@ -291,7 +290,7 @@ printCommandsList addonsFound = putStr commandsList adjustline l = [l] commandsList1 = - regexReplace "OTHERCMDS" (init $ unlines [' ':w | w <- unknownCommandsFound]) $ + regexReplace "OTHERCMDS" (unlines [' ':w | w <- unknownCommandsFound]) $ unlines $ concatMap adjustline $ lines commandsListTemplate commandsList =