diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-11-04 23:00:01 +0100 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-11-04 23:00:01 +0100 |
commit | bfb946c7daacf5f7226ed1019370570c49a5409a (patch) | |
tree | 8040c6c869836f6694bdae205a742d0eb0208ef2 | |
parent | 503a1d4d94fba7adeda50fcb1bf411285d566af6 (diff) | |
download | org-mode-bfb946c7daacf5f7226ed1019370570c49a5409a.tar.gz |
ox-odt: Read list values in ODT_STYLES_FILE
* lisp/ox-odt.el (org-odt-template): Read value for ODT_STYLES_FILE
when it is enclosed in round brackets.
Reported-by: Christian Moe <mail@christianmoe.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-10/msg00418.html>
-rw-r--r-- | lisp/ox-odt.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el index 70ef9de..fd1cb1d 100644 --- a/lisp/ox-odt.el +++ b/lisp/ox-odt.el @@ -1360,6 +1360,9 @@ original parsed data. INFO is a plist holding export options." (let* ((styles-file (plist-get info :odt-styles-file)) (styles-file (and (org-string-nw-p styles-file) (org-trim styles-file))) + (styles-file (if (string-match-p "\\`(.*)\\'" styles-file) + (ignore-errors (read styles-file)) + styles-file)) ;; Non-availability of styles.xml is not a critical ;; error. For now, throw an error. (styles-file (or styles-file |