emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inconsistent handling of multi-line properties


From: Hanno Perrey
Subject: Inconsistent handling of multi-line properties
Date: Sat, 2 Oct 2021 17:01:12 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0

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:

#+begin_src emacs-lisp
(org-entry-get (point) "LOCATION")
#+end_src

#+RESULTS:
: Someplace Some Street 5 12345 Small Town


#+begin_src emacs-lisp
(save-excursion
  (goto-char (point-min))
  (org-element-property :LOCATION (org-element-at-point)))
#+end_src

#+RESULTS:
: Someplace

#+begin_src emacs-lisp
(save-excursion
  (goto-char (point-min))
  (org-element-property :LOCATION+ (org-element-at-point)))
#+end_src

#+RESULTS:
: 12345 Small Town


Thanks and cheers,

Hanno



reply via email to

[Prev in Thread] Current Thread [Next in Thread]