From 50aca8422b0afd4a2173ac93225fa9b39a94d8dd Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 18 Sep 2018 23:03:24 +0200 Subject: [PATCH] ox-html: Remove references to Github * lisp/ox-html.el (org-html-htmlize-generate-css): (org-html-fontify-code): Remove references to Github. Fixes: bug#32722 --- lisp/ox-html.el | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 1a3de4f07..90fa54f4e 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -1749,8 +1749,8 @@ If you then set `org-html-htmlize-output-type' to `css', calls to the function `org-html-htmlize-region-for-paste' will produce code that uses these same face definitions." (interactive) - (or (require 'htmlize nil t) - (error "Please install htmlize from https://github.com/hniksic/emacs-htmlize")) + (unless (require 'htmlize nil t) + (error "htmlize library missing. Aborting")) (and (get-buffer "*html*") (kill-buffer "*html*")) (with-temp-buffer (let ((fl (face-list)) @@ -2168,12 +2168,10 @@ is the language used for CODE, as a string, or nil." ;; Plain text explicitly set. ((not org-html-htmlize-output-type) (org-html-encode-plain-text code)) ;; No htmlize library or an inferior version of htmlize. - ((not (and (or (require 'htmlize nil t) - (error "Please install htmlize from \ -https://github.com/hniksic/emacs-htmlize")) - (fboundp 'htmlize-region-for-paste))) + ((not (progn (require 'htmlize nil t) + (fboundp 'htmlize-region-for-paste))) ;; Emit a warning. - (message "Cannot fontify src block (htmlize.el >= 1.34 required)") + (message "Cannot fontify source block (htmlize.el >= 1.34 required)") (org-html-encode-plain-text code)) (t ;; Map language -- 2.11.4.GIT