From 4e5c7373115cfeb88fb4392252d682fad8d178a8 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Wed, 19 Oct 2022 18:33:44 +0800 Subject: [PATCH] ox-odt: Allow id: links to files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * lisp/ox-odt.el (org-odt-link): Transcode id: links to file property drawers. Reported-by: Moritz Schäfer Link: https://orgmode.org/list/CA+FVMQDBUwCQHFOWieELaB3=4MH2ybA66+NpCuQwvvv_1HVMzg@mail.gmail.com --- lisp/ox-odt.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index 208a39d9d..4ff667640 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -2737,6 +2737,12 @@ INFO is a plist holding contextual information. See (format "%s" (org-export-get-reference destination info) (or desc (org-export-get-ordinal destination info)))) + ;; Link to a file, corresponding to string return value of + ;; `org-export-resolve-id-link'. + (plain-text + (format "%s" + destination + (or desc (org-export-get-ordinal destination info)))) ;; Fuzzy link points to some element (e.g., an inline image, ;; a math formula or a table). (otherwise