aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Citeproc.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Citeproc.hs b/src/Text/Pandoc/Citeproc.hs
index 57f676115..75cbe6991 100644
--- a/src/Text/Pandoc/Citeproc.hs
+++ b/src/Text/Pandoc/Citeproc.hs
@@ -527,11 +527,12 @@ capitalizeNoteCitation x = x
deNote :: Inline -> Inline
deNote (Note bs) = Note $ walk go bs
where
- go (Note bs')
- = Span ("",[],[]) (Space : Str "(" :
- (removeFinalPeriod
- (blocksToInlines bs')) ++ [Str ")"])
+ go (Cite cs ils) = Cite cs (concatMap removeNote ils)
go x = x
+ removeNote (Note bs')
+ = Space : Str "(" : (removeFinalPeriod
+ (blocksToInlines bs')) ++ [Str ")"]
+ removeNote x = [x]
deNote x = x
-- Note: we can't use dropTextWhileEnd indiscriminately,