aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Citeproc.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-07-05 14:45:07 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-07-05 15:10:14 -0700
commit3a31fe68efcf80888294a1d3d33751d266d4de07 (patch)
tree2d86e341c4414179fe78be55c1754d67b9d857c3 /src/Text/Pandoc/Citeproc.hs
parent77537b17657e29d047a2f8df1feda2ed540c6e08 (diff)
downloadpandoc-3a31fe68efcf80888294a1d3d33751d266d4de07.tar.gz
Add command test for #7394.
And fix a small bug in handling of citations in notes, which led to commas at the end of sentences in some cases.
Diffstat (limited to 'src/Text/Pandoc/Citeproc.hs')
-rw-r--r--src/Text/Pandoc/Citeproc.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Citeproc.hs b/src/Text/Pandoc/Citeproc.hs
index 6e2d9ce7e..246f54516 100644
--- a/src/Text/Pandoc/Citeproc.hs
+++ b/src/Text/Pandoc/Citeproc.hs
@@ -612,6 +612,7 @@ deNote (Note bs) =
noteInParens x = [x]
noteAfterComma needsPer (Span ("",["csl-note"],[]) ils)
+ | not (null ils)
= Str "," : Space :
if needsPer
then ils