[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 4e5c737311 1/2: ox-odt: Allow id: links to files
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 4e5c737311 1/2: ox-odt: Allow id: links to files |
Date: |
Wed, 19 Oct 2022 23:57:58 -0400 (EDT) |
branch: externals/org
commit 4e5c7373115cfeb88fb4392252d682fad8d178a8
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
ox-odt: Allow id: links to files
* lisp/ox-odt.el (org-odt-link): Transcode id: links to file property
drawers.
Reported-by: Moritz Schäfer <mail@moritzs.de>
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 208a39d9dc..4ff6676401 100644
--- a/lisp/ox-odt.el
+++ b/lisp/ox-odt.el
@@ -2737,6 +2737,12 @@ INFO is a plist holding contextual information. See
(format "<text:a xlink:type=\"simple\"
xlink:href=\"#%s\">%s</text:a>"
(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 "<text:a xlink:type=\"simple\"
xlink:href=\"%s\">%s</text:a>"
+ 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