Don't add comma+space to prefix if it ends in punctuation.
Patch from Andrea Rossato.
This commit is contained in:
parent
195f9045a4
commit
e8bfabeeeb
1 changed files with 1 additions and 5 deletions
|
@ -163,13 +163,9 @@ toCslCite c
|
|||
AuthorInText -> (True, False)
|
||||
SuppressAuthor -> (False,True )
|
||||
NormalCitation -> (False,False)
|
||||
s' = case s of
|
||||
[] -> []
|
||||
(Str (y:_) : _) | isPunctuation y -> s
|
||||
_ -> Str "," : Space : s
|
||||
in emptyCite { CSL.citeId = citationId c
|
||||
, CSL.citePrefix = PandocText $ citationPrefix c
|
||||
, CSL.citeSuffix = PandocText $ s'
|
||||
, CSL.citeSuffix = PandocText $ s
|
||||
, CSL.citeLabel = la
|
||||
, CSL.citeLocator = lo
|
||||
, CSL.citeNoteNumber = show $ citationNoteNum c
|
||||
|
|
Loading…
Reference in a new issue