aboutsummaryrefslogtreecommitdiffstats
path: root/app/Main.hs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-08 07:29:35 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-08 07:29:42 +0100
commit19b148277aa5a80bce1c87e33bb857e66698f4eb (patch)
tree92f2ca9e8e222843fb41892b13b5f94dd4401f27 /app/Main.hs
parent278e40659ced135ee14d82c3ccf1c0c6e90e85e1 (diff)
feat: easily separate renderables by blank lines
Diffstat (limited to 'app/Main.hs')
-rw-r--r--app/Main.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Main.hs b/app/Main.hs
index da4ea6a..46f6e77 100644
--- a/app/Main.hs
+++ b/app/Main.hs
@@ -573,10 +573,10 @@ main = do
map (if detailed then (P.render . P.Detailed) else (P.render . P.Summarized)) issues
Options {colorize, noPager, width, command = Log {patch}} -> do
es <- reverse . (.issueEvents) <$> getHistory
- putDoc colorize noPager width . P.vsep $
+ putDoc colorize noPager width $
if patch
- then map (P.render . P.Detailed) es
- else map (P.render . P.Summarized) es
+ then P.vsep . intersperse P.emptyDoc $ map (P.render . P.Detailed) es
+ else P.vsep $ map (P.render . P.Summarized) es
Options {colorize, noPager, width, command = Show {id, edit}} -> do
issues <- (.issues) <$> getHistory
issue <-