0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-25 13:02:51 +00:00

org-element-normalize-contents: Fix when ELEMENT is anonymous

* lisp/org-element.el (org-element-normalize-contents): Use
`org-element-set-contents' to set contents instead of assuming
(TYPE PROP CONTENTS) structure.
This commit is contained in:
Ihor Radchenko 2023-08-02 12:04:30 +03:00
parent 8e2f6d94e9
commit 28b6a231e9
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -5331,8 +5331,9 @@ indentation removed from its contents."
(lambda (datum)
;; Return DATUM with all its strings indentation
;; shortened from MIN-IND white spaces.
(setcdr
(cdr datum)
(apply
#'org-element-set-contents
datum
(mapcar
(lambda (object)
(cond