From a51e4dc710d91678126d4cca3970f4b5992474e4 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 19 Nov 2021 09:34:37 +0100 Subject: [PATCH] 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 . 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 917005915..081a28317 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