From 101e2f7426b4e6cdfca562382854bf5e0fc2ed16 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 14 Aug 2022 08:51:53 +0100 Subject: [PATCH] imp: add a missing space after colon in some debug output --- hledger-lib/Hledger/Utils/Debug.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hledger-lib/Hledger/Utils/Debug.hs b/hledger-lib/Hledger/Utils/Debug.hs index a77a6b291..1854adc95 100644 --- a/hledger-lib/Hledger/Utils/Debug.hs +++ b/hledger-lib/Hledger/Utils/Debug.hs @@ -287,7 +287,7 @@ ptraceAt level | otherwise = \s a -> let p = pshow a ls = lines p nlorspace | length ls > 1 = "\n" - | otherwise = replicate (11 - length s) ' ' + | otherwise = replicate (max 1 $ 11 - length s) ' ' ls' | length ls > 1 = map (' ':) ls | otherwise = ls in trace (s++":"++nlorspace++intercalate "\n" ls') a