From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IDUZAInCNmJfPwAAgWs5BA (envelope-from ) for ; Sun, 20 Mar 2022 06:58:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id wPgcOYjCNmKxKgEA9RJhRA (envelope-from ) for ; Sun, 20 Mar 2022 06:58:32 +0100 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 A6347128EA for ; Sun, 20 Mar 2022 06:58:32 +0100 (CET) Received: from localhost ([::1]:40588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVoaF-00034v-Mw for larch@yhetil.org; Sun, 20 Mar 2022 01:58:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVoWa-0002h0-NU for emacs-orgmode@gnu.org; Sun, 20 Mar 2022 01:54:45 -0400 Received: from [2607:f8b0:4864:20::1033] (port=47094 helo=mail-pj1-x1033.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVoWY-0006uq-Je for emacs-orgmode@gnu.org; Sun, 20 Mar 2022 01:54:44 -0400 Received: by mail-pj1-x1033.google.com with SMTP id bx24-20020a17090af49800b001c6872a9e4eso7706247pjb.5 for ; Sat, 19 Mar 2022 22:54:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=oeNV2oXdSzG2wA3bXH6BKZsnBxGpAl3rwr9RsAEVhCI=; b=JU3WoaZPxEnSnUDxQ6XQwJChpMPSfZHL6Dg58PZ2dzlKlszfdKjnMqszbeIYG1yxU5 xi2M0WicqsTZFQW2oEOxacIwhWgfWQsuh0bC35EpIoQ+mHFbY9DXZHTZe/DJVD8KgZfi kBOLPnSlvLxdfl1E17tvXUhf1+dwP/+41bSiv0KHX3LAzU+DPKNcbSdy+x1CCOsfQxeT iIQ4FlJhEgnjguaWT+pG34sPyPfxPJCphX/UM8Y4C3Zmw0813EyWA7zgENWy3xVKbnen pDjg0j1P+WM5kb/C+DqgBEvbmSoln7nSmTkZ2fUO95pYndEjYhDqPrY8shCZMxzLWId6 GI5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=oeNV2oXdSzG2wA3bXH6BKZsnBxGpAl3rwr9RsAEVhCI=; b=tsTcPAC9UiaaH0EY9Du00RQV74FHLJL7Jy/poEY7dTf8nunobxIAVt+KbONKajf/08 vfFimbo2mrM1Ro51BlFo/PQq/W1x6OVxCHpS3Bv6NrBqIall/XUXcUcduSn5z1H33fs4 d2tOod6B1mDW0L7EZMVMieouN1qdUwkDixKrpYs2Yk1utQTgiVf8blH18kLVC9FjYnRg qmG+C3CX9zgbY8ryQkFnYzAy6E374LnxJGm3vVRebQV5iFYa9PEfPqn+SXk8ZRbyJe8p SGP7e7turHs5gE7egUNUlgOLCJggL+WwC3S4NQ/uWl7vXmLMKbv7VsVjyndjqws4aMLv FccQ== X-Gm-Message-State: AOAM5302bS9nXEDKkjCARmzf+BoAL5Rf2ZZ3W+aVfh4iUHi/YAYbQovg zmZTIcgGCxstqXiPo/YXrvztBjsOIcBDaQ== X-Google-Smtp-Source: ABdhPJyl3fVGVDFLkCRGkgHfjpNDWzQGENpbD5imYMnkzw5hHG/7gV50pjCGHPovsKaCjh+JssTL1A== X-Received: by 2002:a17:902:c948:b0:154:1e4f:9837 with SMTP id i8-20020a170902c94800b001541e4f9837mr7021383pla.115.1647755680354; Sat, 19 Mar 2022 22:54:40 -0700 (PDT) Received: from localhost ([45.128.72.3]) by smtp.gmail.com with ESMTPSA id y3-20020a056a00190300b004fa2411bb92sm14769170pfi.93.2022.03.19.22.54.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Mar 2022 22:54:39 -0700 (PDT) From: Ihor Radchenko To: Hanno Perrey Subject: Re: Inconsistent handling of multi-line properties In-Reply-To: <185742ab-1719-540e-742c-5496ff61731d@hoowl.se> References: <185742ab-1719-540e-742c-5496ff61731d@hoowl.se> X-Woof-Bug: Multi-line (PROPERTY/PROPERTY+) properties in ox-icalendar and other export backends Date: Sun, 20 Mar 2022 13:55:07 +0800 Message-ID: <87o821dv7o.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::1033 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::1033; envelope-from=yantar92@gmail.com; helo=mail-pj1-x1033.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1647755912; 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=oeNV2oXdSzG2wA3bXH6BKZsnBxGpAl3rwr9RsAEVhCI=; b=ZKz7sB5kgtgBoGcI2dPxBXBN9qw39ktHYNX0mBKJeLdRzI90sYaUhwuQeDaXdMsaeNmbVm ehkZ2zCByLHo9RGy3XwJeu4xJdbmUXajjrxE1UcA77Ig4/GAk8PKDJsh5ZWMKOwfFiHMAj wFkKLy0Fp1HnIlWlOZgCvPCGJeFSsfDZhUhrNr1w9+H+XcWLZ5n2IF43QZEIPHTwlZwFSV CfHTpuD901O5oLWx/naV7nI727cd8mhPNOBY8rzl0X5jXZForNKxoQ+Zb5piHeDvNMDK3A VretGoeAmyPvVpOh9DCj4/1GybrfUMffY0RGTCl0DSdz4Gt+w+eN/wnSUuDrzg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1647755912; a=rsa-sha256; cv=none; b=tGo1Jced0LTr5CdFf2Lp4B3q6I3FfYZZViwJiRAM3CtbKADcIm3++WxEIMaGxsqV0jCJGQ ZIrP/NBJGcv+8BP5/0V1VIiR5VBXdmQMheXdFB0QW3FTw4x3PjRxK2/cpM61GI1Iv8QRU+ K+2g5FDRSl5ltEpr9KOM4hqmCjrlC5o7DqiH1id6wNt3053mYupfFLaF0i4MijXLrzurCy VznWah9yPIpnmILDqjV95Hu031SGfHQdeWpurk5K36u7Cj6MyqDWq6HJF8zH3qsgOXW73w XXqeEt1Yna57mIMXiDDFSnsgtZOWpwvfZVvAXpcG8eKSUmfozXCZiGlhlsF8rA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=JU3WoaZP; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -5.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=JU3WoaZP; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: A6347128EA X-Spam-Score: -5.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: iEoQgK22vQaz Hanno Perrey writes: > Hej, > > I have noticed that properties that stretch over multiple lines using > the :value+: syntax are ignored by org-element-property and therefore > also by e.g. org-export-get-node-property when exporting to ics via > ox-icalendar.el (see example below). I was wondering now whether this is > intentional and to be expected or a bug? > > * heading with multi-line property > :PROPERTIES: > :LOCATION: Someplace > :LOCATION+: Some Street 5 > :LOCATION+: 12345 Small Town > :END: Confirmed. I am not sure if this should be fixed on org-export-get-node-property level. Icalendar may want to concatenate the multi-line property specially. The usual Org approach is merging such properties into a single line. I can see multiple solutions: 1. Change Org's behaviour globally and make org-element-property return a list for multi-line properties. This will likely break things, but I would be in favour, unless Nicolas disagrees. 2. Change org-export-get-node-property to behave like org-entry-get and concatenate multi-line properties into a single line 3. Change ox-icalendar to consider :LOCATION+ properties and merge them during export. Best, Ihor