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.
This commit is contained in:
parent
77537b1765
commit
3a31fe68ef
2 changed files with 86 additions and 0 deletions
|
@ -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
|
||||
|
|
85
test/command/7394.md
Normal file
85
test/command/7394.md
Normal file
|
@ -0,0 +1,85 @@
|
|||
```
|
||||
% pandoc -f markdown -t plain --citeproc
|
||||
---
|
||||
csl: command/chicago-fullnote-bibliography.csl
|
||||
references:
|
||||
- author:
|
||||
- family: Wandt
|
||||
given: Manfred
|
||||
edition: 6
|
||||
id: wandt2014ges-sv
|
||||
issued: 2014
|
||||
publisher: Franz Vahlen
|
||||
publisher-place: München
|
||||
title: Gesetzliche schuldverhältnisse
|
||||
title-short: Gesetzl SV
|
||||
type: book
|
||||
- author:
|
||||
- family: Smith
|
||||
given: Zenda
|
||||
edition: 6
|
||||
id: smith2015
|
||||
issued: 2015
|
||||
publisher: Macmillan
|
||||
publisher-place: New York
|
||||
title: A verb and a noun
|
||||
type: book
|
||||
---
|
||||
|
||||
Hi^[@wandt2014ges-sv.].
|
||||
|
||||
Hi^[[@wandt2014ges-sv].].
|
||||
|
||||
Hi^[[See also @wandt2014ges-sv].].
|
||||
|
||||
Hi^[See also @wandt2014ges-sv.].
|
||||
|
||||
Hi^[@wandt2014ges-sv [@smith2015].].
|
||||
|
||||
Hi^[[@wandt2014ges-sv; @smith2015].].
|
||||
|
||||
Hi [@wandt2014ges-sv].
|
||||
|
||||
Hi [see also @wandt2014ges-sv].
|
||||
|
||||
^D
|
||||
Hi[1].
|
||||
|
||||
Hi[2].
|
||||
|
||||
Hi[3].
|
||||
|
||||
Hi[4].
|
||||
|
||||
Hi[5].
|
||||
|
||||
Hi[6].
|
||||
|
||||
Hi.[7]
|
||||
|
||||
Hi.[8]
|
||||
|
||||
Smith, Zenda. A Verb and a Noun. 6th ed. New York: Macmillan, 2015.
|
||||
|
||||
Wandt, Manfred. Gesetzliche Schuldverhältnisse. 6th ed. München: Franz
|
||||
Vahlen, 2014.
|
||||
|
||||
[1] Manfred Wandt, Gesetzliche Schuldverhältnisse, 6th ed. (München:
|
||||
Franz Vahlen, 2014).
|
||||
|
||||
[2] Wandt.
|
||||
|
||||
[3] See also Wandt.
|
||||
|
||||
[4] See also Wandt.
|
||||
|
||||
[5] Wandt, Zenda Smith, A Verb and a Noun, 6th ed. (New York: Macmillan,
|
||||
2015).
|
||||
|
||||
[6] Wandt, Gesetzl SV; Smith, A Verb and a Noun.
|
||||
|
||||
[7] Wandt, Gesetzl SV.
|
||||
|
||||
[8] See also Wandt.
|
||||
```
|
||||
|
Loading…
Add table
Reference in a new issue