From: Georg Lehner <jorge-org@magma.com.ni>
To: emacs-orgmode@gnu.org
Subject: Re: Open Document Exporter
Date: Fri, 28 Jun 2013 23:20:00 +0200 [thread overview]
Message-ID: <51CDFE00.7080401@magma.com.ni> (raw)
In-Reply-To: <51C8BA2B.8010509@magma.com.ni>
Hello!
Here comes another (tiny) patch which fixes generation of external links
to relative file paths.
Apparently =./Media/logo.png= has to be inserted as
=href=../Media/logo.png=.
At least on LibreOffice 3 and 4 anything else fails. LibreOffice always
shows and uses the
absolute path and prefixes the stored relative path with the path to the
=.odt= file
*including the filename itself*!
So the =../= removes the filename and the link gets calculated correctly.
Best Regards,
Georg Lehner
- - -
--- /home/jorge/progs/org-mode/lisp/ox-odt.el
+++ /home/jorge/emacs/lib/org-mode/lisp/ox-odt.el
@@ -2763,7 +2780,7 @@
((string= type "file")
(if (file-name-absolute-p raw-path)
(concat "file://" (expand-file-name raw-path))
- (concat "file://" raw-path)))
+ (concat "file:" "../" raw-path)))
(t raw-path)))
;; Convert & to & for correct XML representation
(path (replace-regexp-in-string "&" "&" path))
next prev parent reply other threads:[~2013-06-28 21:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-24 21:29 Open Document Exporter Georg Lehner
2013-06-25 1:35 ` Vikas Rawal
2013-06-27 0:19 ` Georg Lehner
2013-06-27 13:58 ` Bastien
2013-06-29 12:43 ` Jambunathan K
2013-06-29 20:37 ` Georg Lehner
2013-06-26 9:42 ` Nicolas Goaziou
2013-06-28 21:20 ` Georg Lehner [this message]
2013-06-29 13:24 ` Jambunathan K
2013-06-29 13:26 ` Jambunathan K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51CDFE00.7080401@magma.com.ni \
--to=jorge-org@magma.com.ni \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.