From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8IIqFz5sAWXFUAEA9RJhRA:P1 (envelope-from ) for ; Wed, 13 Sep 2023 10:01:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8IIqFz5sAWXFUAEA9RJhRA (envelope-from ) for ; Wed, 13 Sep 2023 10:01:02 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B36D034494 for ; Wed, 13 Sep 2023 10:01:01 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="ljT21z3/"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694592061; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=e7JBX/PLMQo7PgdavjzZkNh8BdS5uQ30csCo+bZqTbI=; b=aM6p7RwSgu8QVgyXm8Jn4sWS0eq4VGAgInjmvhQQVB3HWt26LJ7TnUgbSS/yMNDLn/nKEh 1prWFfikFat3BkCmlPS4jIBOihc9IagqeBYWzjRWWl7c44F30UH2YYguIi8sA75KEOTi0v GTtcLj2whXPFLrLFd6JqGfTmhEQ7CCVqbBEmTdQisz+g+3tjVe92QJBm522U8foI/sm/Ee JsM7cPnBOfFXbeUkMdSDeT7VPqDzoS9mXgdFrTLHneCc+2E+9CjhfPbxVuYqjveGlQF6r9 /Zf7zaMcsBmZvEFocM7haHjnLh8lyrWbD/4c11IN6VkwDf+zOByEtiWIWSNFNg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694592061; a=rsa-sha256; cv=none; b=t2mQ8OYzkPStntRJurQhBEXg/v30TuYJmU9fEPQ6DlRfknYyBOwIO8AcjGJ00taLK9wFUO y2fxOuiBvkp8RpQ8RtVQ14wnVONAhsCn/98xgfs3MQfPBAbMuMwe+pOGZP56WEIly4Q4p/ zuaM8d3o2kFYKT35LbHNGwIz+xT3N4KkZYtwZidAPH6iSfmjdq0Q8Q76lBEij3LlAbeb84 1kWH3duFRDl1i21QGTGvYbdV93rvc0KBNWIOXwO8rbvS1odqlB+IDeF+aFRojsFHEV+wXk uiIM3nxTNuo81Kd9hDdmnzOJd1CZzvtwtNhCy1oj14E38NeK/YIxiqDXiVIxWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="ljT21z3/"; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgKmk-0006H6-TI; Wed, 13 Sep 2023 03:59:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgKmi-0006GG-T1 for emacs-orgmode@gnu.org; Wed, 13 Sep 2023 03:59:40 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgKme-0003LX-UM for emacs-orgmode@gnu.org; Wed, 13 Sep 2023 03:59:40 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3AE2E240103 for ; Wed, 13 Sep 2023 09:59:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1694591974; bh=hUorFjryv10MrUFCp9HM0lriWjd8eGm3EGHFZq99yCs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=ljT21z3/tuLMxuprZ1ORkRDv0aewUa0U5lGvDIsusDZvxETB+FZkoNyunaPqsOJEX L0RL8aICcbdP7vCjcAM64MCB7jRoYAtjrmAAPxibTv2+6FID029TdsFj32RYXW9FR2 vmshgq/uZPPbHKJPcSX4aBQVDS0ZlGirb3/2QkR/iHCG3SV4dANFc4ATZbat4BLAg+ uY60lEIlrn91i4MQ4iHl5jd6PE9dH8rLpOd2/XK0OLLmdpbXYTIcJv3Sr7miQtqhzh NbyL1I92lepPnx4viXxyRcUAY4HcHXzc8Wi7+BdscGfuh1KOtgUZSGbYDrsT49Ea6K coj+siNv3maSg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RltC92h6rz6ty4; Wed, 13 Sep 2023 09:59:33 +0200 (CEST) From: Ihor Radchenko To: Henrik Frisk , Jack Kamm Cc: org-mode-email Subject: Re: ICalendar export In-Reply-To: References: Date: Wed, 13 Sep 2023 08:00:36 +0000 Message-ID: <87pm2mh597.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.21 X-Spam-Score: -7.21 X-Migadu-Queue-Id: B36D034494 X-Migadu-Scanner: mx0.migadu.com X-TUID: mfd2zPF2EGs5 --=-=-= Content-Type: text/plain Henrik Frisk writes: > Recently (not sure when) the ics output came out malformed and a newline is > omitted between the end of one event and the beginning of another: > > END:VEVENT > BEGIN:VEVENT > > is now > > END:VEVENTBEGIN:VEVENT > > I can't figure out wha the pattern is, for some events the output is > correct. > > This is on Org mode version 9.7-pre release_9.6.8-719-gf299fb and emacs 29.1 We recently did some major changes to comply better to the icalendar specs and introduced new feature. As it usually goes, major changes can easily introduce new bugs. Does the attached patch fix the problem for you? --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-ox-icalendar-Ensure-that-entries-in-icalendar-end-wi.patch >From 5ab376c558cbd0c1dcdbba99b4a42ff11e27418a Mon Sep 17 00:00:00 2001 Message-ID: <5ab376c558cbd0c1dcdbba99b4a42ff11e27418a.1694591956.git.yantar92@posteo.net> 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 @@ (\"PUBLIC\", \"CONFIDENTIAL\", and \"PRIVATE\") are predefined, others "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 @@ (defun org-icalendar--vtodo (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. -- 2.42.0 --=-=-= Content-Type: text/plain -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at --=-=-=--