org-odt.el: Provide for non-availability of `org-version'

* lisp/org-odt.el (org-odt-update-meta-file): Check for
`org-version' is bound before accessing it.
This commit is contained in:
Jambunathan K 2012-04-26 01:18:58 +05:30
parent a178bc9d84
commit 4908ea99ed
1 changed files with 3 additions and 1 deletions

View File

@ -2383,7 +2383,9 @@ visually."
(org-odt-format-tags '("\n<meta:generator>" . "</meta:generator>")
(when org-export-creator-info
(format "Org-%s/Emacs-%s"
org-version emacs-version)))
(if (boundp 'org-version) org-version
"Unknown")
emacs-version)))
(org-odt-format-tags '("\n<meta:keyword>" . "</meta:keyword>") keywords)
(org-odt-format-tags '("\n<dc:subject>" . "</dc:subject>") description)
(org-odt-format-tags '("\n<dc:title>" . "</dc:title>") title)