From 1ab9fa60e75a15e09ca28966dd1e4cb364ca3809 Mon Sep 17 00:00:00 2001 From: Rajeev Narang Date: Wed, 11 Aug 2021 14:57:43 +0200 Subject: [PATCH] Make icalendar parse multi-line items correctly * lisp/calendar/icalendar.el (icalendar--parse-summary-and-rest): Parse multi-line items correctly (bug#37887). --- lisp/calendar/icalendar.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el index 3c1bac28f64..eaee2e9d951 100644 --- a/lisp/calendar/icalendar.el +++ b/lisp/calendar/icalendar.el @@ -1273,7 +1273,7 @@ Returns an alist." (concat "\\(" icalendar-import-format-uid "\\)??")))) ;; Need the \' regexp in order to detect multi-line items (setq s (concat "\\`" - (replace-regexp-in-string "%s" "\\(.*?\\)" s nil t) + (replace-regexp-in-string "%s" "\\([^z-a]*?\\)" s nil t) "\\'")) (if (string-match s summary-and-rest) (let (cla des loc org sta url uid) ;; sum -- 2.39.5