aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2011-11-06 16:37:50 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2011-11-06 16:37:50 -0800
commit380fa067201da45534db0e5945126dff594382c9 (patch)
tree4f83643526c91005ec1fe6f7e3dca20ab8c2c3cc /src/Text
parent3bf1984df6f2bc2361773124637497e2da6eb2b5 (diff)
downloadpandoc-380fa067201da45534db0e5945126dff594382c9.tar.gz
Further cleanup of Biblio.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Biblio.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Biblio.hs b/src/Text/Pandoc/Biblio.hs
index 534fc8a8c..723c7ed10 100644
--- a/src/Text/Pandoc/Biblio.hs
+++ b/src/Text/Pandoc/Biblio.hs
@@ -68,9 +68,9 @@ processCite s cs (Cite t _) =
case M.lookup t cs of
Just x -> if isTextualCitation t
then renderPandoc s (take 1 x) ++
- case x of
- (_:xs) -> [Space, Cite t $ renderPandoc s xs]
- _ -> []
+ case drop 1 x of
+ [] -> []
+ ys -> [Space, Cite t $ renderPandoc s ys]
else [Cite t $ renderPandoc s x]
Nothing -> [Str ("Error processing " ++ show t)]
processCite _ _ x = [x]