diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2011-11-06 17:28:39 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2011-11-06 17:28:39 -0800 |
commit | ca98cd8f18a508b491b27c6dcb609f8d92623363 (patch) | |
tree | 5445dedf1338e3e5ba4797e955ccbaa35cdb7fbb | |
parent | ca5f4434c2652f778fab32cba6db6fc740c62cbb (diff) | |
download | pandoc-ca98cd8f18a508b491b27c6dcb609f8d92623363.tar.gz |
Biblio: Put whole author-in-text citation in a Cite.
Previously just the date and other info went in the Cite.
-rw-r--r-- | src/Text/Pandoc/Biblio.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Biblio.hs b/src/Text/Pandoc/Biblio.hs index c824f63c5..69c1eb482 100644 --- a/src/Text/Pandoc/Biblio.hs +++ b/src/Text/Pandoc/Biblio.hs @@ -68,10 +68,10 @@ processCite s cs (Cite t _) = case M.lookup t cs of Just (x:xs) -> if isTextualCitation t - then renderPandoc s [x] ++ - if null xs - then [] - else [Space, Cite t $ renderPandoc s xs] + then [Cite t $ renderPandoc s [x] ++ + if null xs + then [] + else [Space, Cite t $ renderPandoc s xs]] else [Cite t $ renderPandoc s (x:xs)] _ -> [Str ("Error processing " ++ show t)] processCite _ _ x = [x] |