forked from mirrors/org-mode
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:
parent
6a4343a461
commit
48b8d633c4
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue