[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals-release/org a51e4dc: ox-icalendar: Fix error dangling f

From: ELPA Syncer
Subject: [elpa] externals-release/org a51e4dc: ox-icalendar: Fix error dangling footnotes
Date: Fri, 19 Nov 2021 03:57:24 -0500 (EST)

branch: externals-release/org
commit a51e4dc710d91678126d4cca3970f4b5992474e4
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Commit: Nicolas Goaziou <mail@nicolasgoaziou.fr>

    ox-icalendar: Fix error dangling footnotes
    * lisp/ox-icalendar.el (icalendar): Add an inner-template function so
    as to not use "ox-ascii"'s.
    (org-icalendar-inner-template): New function.
    This fixes 
    and <http://lists.gnu.org/r/emacs-orgmode/2021-11/msg00395.html>.
    Footnote definition is lost, but references are already removed from
    the description anyway, so the problem is not worse.
 lisp/ox-icalendar.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lisp/ox-icalendar.el b/lisp/ox-icalendar.el
index 9170059..081a283 100644
--- a/lisp/ox-icalendar.el
+++ b/lisp/ox-icalendar.el
@@ -280,6 +280,7 @@ re-read the iCalendar file.")
                     (footnote-definition . ignore)
                     (footnote-reference . ignore)
                     (headline . org-icalendar-entry)
+                     (inner-template . org-icalendar-inner-template)
                     (inlinetask . ignore)
                     (planning . ignore)
                     (section . ignore)
@@ -805,6 +806,11 @@ END:VALARM\n"
 ;;;; Template
+(defun org-icalendar-inner-template (contents _)
+  "Return document body string after iCalendar conversion.
+CONTENTS is the transcoded contents string."
+  contents)
 (defun org-icalendar-template (contents info)
   "Return complete document string after iCalendar conversion.
 CONTENTS is the transcoded contents string.  INFO is a plist used

reply via email to

[Prev in Thread] Current Thread [Next in Thread]