From 48b8d633c49cf2381665c84c026dcb8c85d972ee Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Mon, 12 Dec 2011 20:40:53 +0530 Subject: [PATCH] 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. --- lisp/org-odt.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-odt.el b/lisp/org-odt.el index 558445bab..2a1882cfe 100644 --- a/lisp/org-odt.el +++ b/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)