aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-12-18 12:13:06 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-12-18 12:13:06 -0800
commit4b220d592c163efb0bf5a0e1db2ed7d6be9c69e7 (patch)
tree2773cc26efe3f8ab49141a4d2aa94b527cc30ff8 /test
parent6b0a560ae71b5ca7c2439d7470bed7b02c362a64 (diff)
downloadpandoc-4b220d592c163efb0bf5a0e1db2ed7d6be9c69e7.tar.gz
Citeproc: avoid adding comma before an author-in-text citation...
...in a note if it begins with a title (no author). Closes #7761.
Diffstat (limited to 'test')
-rw-r--r--test/command/7761.md35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/command/7761.md b/test/command/7761.md
new file mode 100644
index 000000000..0307bcaee
--- /dev/null
+++ b/test/command/7761.md
@@ -0,0 +1,35 @@
+```
+% pandoc --citeproc --csl command/chicago-fullnote-bibliography.csl -t plain
+---
+references:
+- id: noauthor
+ issued: 2020
+ publisher: Oxford University Press
+ publisher-place: Oxford
+ title: Title
+ type: book
+- id: author
+ author:
+ - family: Jones
+ given: Jim
+ issued: 2021
+ title: Title
+ type: book
+ url: "https://duckduckgo.com/cite2021"
+---
+
+Text.[^n]
+
+[^n]: See @author. Another example of a sea level mapping tool with
+similar limitations is @noauthor.
+^D
+Text.[1]
+
+Jones, Jim. Title, 2021. https://duckduckgo.com/cite2021.
+
+Title. Oxford: Oxford University Press, 2020.
+
+[1] See Jim Jones, Title, 2021, https://duckduckgo.com/cite2021. Another
+example of a sea level mapping tool with similar limitations is Title
+(Oxford: Oxford University Press, 2020).
+```