org-odt.el: Don't crash if htmlfontify is not available

* lisp/org-odt.el (org-odt-format-source-code-or-example): Try
loading htmlfontify safely.
This commit is contained in:
Jambunathan K 2011-12-12 20:40:53 +05:30
parent 6a4343a461
commit 48b8d633c4

View file

@ -1226,7 +1226,7 @@ value of `org-export-odt-fontify-srcblocks."
lines (funcall
(or (and org-export-odt-fontify-srcblocks
(or (featurep 'htmlfontify)
(require 'htmlfontify))
(require 'htmlfontify nil t))
(fboundp 'htmlfontify-string)
'org-odt-format-source-code-or-example-colored)
'org-odt-format-source-code-or-example-plain)