diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2011-11-06 16:37:50 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2011-11-06 16:37:50 -0800 |
commit | 380fa067201da45534db0e5945126dff594382c9 (patch) | |
tree | 4f83643526c91005ec1fe6f7e3dca20ab8c2c3cc /src/Text | |
parent | 3bf1984df6f2bc2361773124637497e2da6eb2b5 (diff) | |
download | pandoc-380fa067201da45534db0e5945126dff594382c9.tar.gz |
Further cleanup of Biblio.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Biblio.hs | 6 |
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] |