1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-21 06:55:35 +00:00

oc-bibtex: Use `org-cite-main-affixes'

* lisp/oc-bibtex.el (org-cite-bibtex-export-citation): Call
`org-cite-main-affixes'.
This commit is contained in:
Nicolas Goaziou 2021-11-03 16:30:09 +01:00
parent 498a76857b
commit e0bbfe63a4

View File

@ -62,11 +62,7 @@ state, as a property list."
(pcase style
(`(,(or "nocite" "n") . ,_) "nocite")
(_ "cite"))
(let ((suffix
(org-element-property :suffix
(pcase references
(`(,ref) ref)
(_ citation)))))
(let ((suffix (cdr (org-cite-main-affixes citation))))
(if suffix
(format "[%s]" (org-trim (org-export-data suffix info)))
""))