summaryrefslogtreecommitdiff
path: root/Pancake.hs
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2017-10-29 00:34:50 +0300
committerdefanor <defanor@uberspace.net>2017-10-29 00:34:50 +0300
commit60871cf9623e154dd411689d8ac592cba6d34713 (patch)
treea60c668bfbf52b544a9b45221cbc5a7fbe165fd7 /Pancake.hs
parent318446697f5f4616a2ca41c5b4fad8a71d14ee46 (diff)
Start rendering with zero indentation
A minor fix: `renderDoc` used to call `renderBlocks`, which increases indentation at once, giving a minimum indentation level of 1.
Diffstat (limited to 'Pancake.hs')
-rw-r--r--Pancake.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Pancake.hs b/Pancake.hs
index b637754..939ca6d 100644
--- a/Pancake.hs
+++ b/Pancake.hs
@@ -498,7 +498,7 @@ renderDoc (P.Pandoc _ blocks) = do
term <- liftIO TI.setupTermFromEnv
st <- get
let cols = maybe 80 id $ TI.getCapability term TI.termColumns
- l = runRenderer cols $ renderBlocks blocks
+ l = runRenderer cols $ mapM_ renderBlock blocks
textLines = rights l
modify (\s -> s { links = lefts l })
if embedded st