mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-27 07:37:25 +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:
parent
5d95296029
commit
07ee690dce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user