Skip to content

Commit 70a311b

Browse files
committed
ox-icalendar: Avoid processing ignored elements
* lisp/ox-icalendar.el (icalendar): Use nil transcoders instead of `ignore' for ignored element types. Otherwise, `org-export-data' still exports the ignored element contents, including resolving links, and the result is ignored. The contents might contain broken links and hence lead to errors despite the whole element not supposed to be exported. Fixes https://orgmode.org/list/45aa417a-7eb1-1070-b0dd-17bdd7d1448f@mailbox.org
1 parent 6e991f4 commit 70a311b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lisp/ox-icalendar.el

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,14 @@ re-read the iCalendar file.")
276276
;;; Define Back-End
277277

278278
(org-export-define-derived-backend 'icalendar 'ascii
279-
:translate-alist '((clock . ignore)
280-
(footnote-definition . ignore)
281-
(footnote-reference . ignore)
279+
:translate-alist '((clock . nil)
280+
(footnote-definition . nil)
281+
(footnote-reference . nil)
282282
(headline . org-icalendar-entry)
283283
(inner-template . org-icalendar-inner-template)
284-
(inlinetask . ignore)
285-
(planning . ignore)
286-
(section . ignore)
284+
(inlinetask . nil)
285+
(planning . nil)
286+
(section . nil)
287287
(template . org-icalendar-template))
288288
:options-alist
289289
'((:exclude-tags

0 commit comments

Comments
 (0)