From 14bde5aba5b11eed2d0d776d2e492f7bc34218f2 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Wed, 13 Sep 2023 10:58:15 +0300 Subject: [PATCH] ox-icalendar: Ensure that entries in icalendar end with a newline * lisp/ox-icalendar.el (org-icalendar--vevent): (org-icalendar--vtodo): Make sure that there is a newline after the exported VEVENT and VTODO. Reported-by: Henrik Frisk Link: https://orgmode.org/list/CAO0LSb4aQhUMny4xr=1LB3t5F-K-WnjK1zc+qR7Jy+69vr2wpw@mail.gmail.com --- lisp/ox-icalendar.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ox-icalendar.el b/lisp/ox-icalendar.el index 980bb0ed3..20efad243 100644 --- a/lisp/ox-icalendar.el +++ b/lisp/ox-icalendar.el @@ -809,7 +809,7 @@ Return VEVENT component as a string." "CATEGORIES:" categories "\n" ;; VALARM. (org-icalendar--valarm entry timestamp summary) - "END:VEVENT"))) + "END:VEVENT\n"))) (defun org-icalendar--repeater-type (elem) "Return ELEM's repeater-type if supported, else warn and return nil." @@ -952,7 +952,7 @@ repeater on DEADLINE but not SCHEDULED. Skipping.") (if (eq (org-element-property :todo-type entry) 'todo) "NEEDS-ACTION" "COMPLETED")) - "END:VTODO"))) + "END:VTODO\n"))) (defun org-icalendar--valarm (entry timestamp summary) "Create a VALARM component.