diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-09-18 23:03:24 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-09-18 23:03:24 +0200 |
commit | 50aca8422b0afd4a2173ac93225fa9b39a94d8dd (patch) | |
tree | f40b6298f9bedc2dff28c0faeaf867b5b7ebcb3f | |
parent | 13090d114be501910cc5757e6ae5582ed50d564f (diff) | |
download | org-mode-50aca8422b0afd4a2173ac93225fa9b39a94d8dd.tar.gz |
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
-rw-r--r-- | lisp/ox-html.el | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 1a3de4f..90fa54f 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 |