Browse Source

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.
Jambunathan K 13 years ago
parent
commit
48b8d633c4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/org-odt.el

+ 1 - 1
lisp/org-odt.el

@@ -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)