From fdd9b6d330a5ef7c0e95b67f37d0233922c29300 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Wed, 6 Dec 2023 15:51:56 +0100 Subject: [PATCH] org-cite-capitalize: Fix when STR is a raw string pseudo-object * lisp/oc.el (org-cite-capitalize): Assure that `upcase' is passed a string. Link: https://orgmode.org/list/alpine.DEB.2.22.394.2311290957360.107158@shell3.miskatonic.org --- lisp/oc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/oc.el b/lisp/oc.el index 72e1779e2..1d0d46153 100644 --- a/lisp/oc.el +++ b/lisp/oc.el @@ -1241,7 +1241,7 @@ and must return either a string, an object, or a secondary string." ((stringp str) (capitalize str)) ((org-element-type-p str 'raw) (org-export-raw-string - (upcase (org-element-contents str)))) + (upcase (mapconcat #'identity (org-element-contents str) "")))) (t (error "%S must be either a string or raw string object" str))))