aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-11-14 05:46:56 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-11-14 05:48:20 -0800
commita1f69b1c7d6622a3bee678eb01ba36e94b99cd20 (patch)
tree8aedaf5549458638df02460b045103fb4feb032d /src/Text/Pandoc
parente43c2e75a1284f464ce1ef9b3b6e12ea2b645f4a (diff)
downloadpandoc-a1f69b1c7d6622a3bee678eb01ba36e94b99cd20.tar.gz
Fix regression preventing header-includes from being set using -V.
See #5904.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/App/OutputSettings.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App/OutputSettings.hs b/src/Text/Pandoc/App/OutputSettings.hs
index d328a9b6a..77248cab1 100644
--- a/src/Text/Pandoc/App/OutputSettings.hs
+++ b/src/Text/Pandoc/App/OutputSettings.hs
@@ -117,7 +117,8 @@ optToOutputSettings opts = do
let setVariableM k v = return . setVariable k v
- let setListVariableM k vs =
+ let setListVariableM _ [] = return
+ setListVariableM k vs =
return . Context .
(M.insert (T.pack k) (toVal $ map T.pack vs)) . unContext