Browse Source

ox-html.el (org-html-fontify-code): Possibly deactivate fci-mode

* ox-html.el (org-html-fontify-code): Possibly deactivate fci-mode.

Thanks to Kaushal for suggesting this.
Bastien Guerry 10 years ago
parent
commit
44aaaad8c0
1 changed files with 4 additions and 0 deletions
  1. 4 0
      lisp/ox-html.el

+ 4 - 0
lisp/ox-html.el

@@ -1958,6 +1958,10 @@ is the language used for CODE, as a string, or nil."
 	  (setq code (with-temp-buffer
 		       ;; Switch to language-specific mode.
 		       (funcall lang-mode)
+		       ;; Disable fci-mode if present
+		       (when (and (fboundp 'fci-mode)
+				  (require 'fill-column-indicator nil 'noerror))
+			 (fci-mode -1))
 		       (insert code)
 		       ;; Fontify buffer.
 		       (font-lock-ensure)