Pārlūkot izejas kodu

Require htmlfontify.el only if emacs-version is greater than 23.2.

* org-odt.el (require): Require htmlfontify.el only if
emacs-version is greater than 23.2.

Thanks to Martyn Jago for reporting this.
Bastien Guerry 13 gadi atpakaļ
vecāks
revīzija
6a4343a461
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      lisp/org-odt.el

+ 3 - 1
lisp/org-odt.el

@@ -28,7 +28,9 @@
 ;;; Code:
 (eval-when-compile
   (require 'cl)
-  (require 'htmlfontify))
+  ;; htmlfontify.el was introduce in Emacs 23.2
+  (when (>= (string-to-number emacs-version) 23.2)
+    (require 'htmlfontify)))
 (require 'org-lparse)
 
 (defgroup org-export-odt nil