1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-30 08:08:26 +00:00

ox-odt: Fix End of file during parsing error

* lisp/ox-odt.el (org-odt-template): Do not call `read' on an empty
  string.

Reported-by: Damien Cassou <damien@cassou.me>
<http://permalink.gmane.org/gmane.emacs.orgmode/104947>
This commit is contained in:
Nicolas Goaziou 2016-02-09 21:52:10 +01:00
parent 5d95296029
commit 07ee690dce

View File

@ -1383,7 +1383,8 @@ original parsed data. INFO is a plist holding export options."
;; Copy styles.xml. Also dump htmlfontify styles, if there is any.
;; Write styles file.
(let* ((styles-file (plist-get info :odt-styles-file))
(styles-file (and styles-file (read (org-trim styles-file))))
(styles-file (and (org-string-nw-p styles-file)
(read (org-trim styles-file))))
;; Non-availability of styles.xml is not a critical
;; error. For now, throw an error.
(styles-file (or styles-file