summaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Citeproc.hs2
-rw-r--r--src/Text/Pandoc/Writers/LaTeX.hs4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Citeproc.hs b/src/Text/Pandoc/Citeproc.hs
index 9b3e38b65..e38239763 100644
--- a/src/Text/Pandoc/Citeproc.hs
+++ b/src/Text/Pandoc/Citeproc.hs
@@ -87,7 +87,7 @@ processCitations (Pandoc meta bs) = do
"csl-bib-body" :
["hanging-indent" | styleHangingIndent sopts]
let refkvs = (case styleEntrySpacing sopts of
- Just es | es > 0 -> (("entry-spacing",T.pack $ show es):)
+ Just es -> (("entry-spacing",T.pack $ show es):)
_ -> id) .
(case styleLineSpacing sopts of
Just ls | ls > 1 -> (("line-spacing",T.pack $ show ls):)
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs
index dc726475a..937729c12 100644
--- a/src/Text/Pandoc/Writers/LaTeX.hs
+++ b/src/Text/Pandoc/Writers/LaTeX.hs
@@ -345,9 +345,7 @@ blockToLaTeX (Div (identifier,classes,kvs) bs) = do
then "1"
else "0")
<> braces
- (case lookup "entry-spacing" kvs of
- Nothing -> "0"
- Just s -> literal s))
+ (maybe "1" literal (lookup "entry-spacing" kvs)))
$$ inner
$+$ "\\end{CSLReferences}"
else blockListToLaTeX bs