Browse Source

oc-csl: Fix footnote status reporting for wrapped citations

* lisp/oc-csl.el (org-cite-csl--create-structure): Update footnote information
when citation is wrapped in a footnote.
András Simonyi 3 năm trước cách đây
mục cha
commit
16dcfdfa80
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      lisp/oc-csl.el

+ 2 - 1
lisp/oc-csl.el

@@ -501,7 +501,8 @@ INFO is the export state, as a property list."
     ;; a footnote, but isn't yet.
     (when (and (not footnote) (org-cite-csl--note-style-p info))
       (org-cite-adjust-note citation info)
-      (org-cite-wrap-citation citation info))
+      (org-cite-wrap-citation citation info)
+      (setq footnote (org-element-lineage citation '(footnote-reference))))
     ;; Return structure.
     (apply #'citeproc-citation-create
            `(:note-index