summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2017-09-19 22:01:07 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-09-19 22:01:07 +0200
commitcf35109ad8be6e34a6fc38ac37a38fc37a7acf08 (patch)
tree0c712b39a1cffe16a889cd890a37e12f7ff9700a
parent6e7d1526993e7ea8f1359627649ec7944708a42c (diff)
parentdb1dab8abe41eb052aac8428262482f6c3974880 (diff)
downloadorg-mode-cf35109ad8be6e34a6fc38ac37a38fc37a7acf08.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/ox-html.el23
1 files changed, 10 insertions, 13 deletions
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index ebb233b..d91ca73 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -174,7 +174,6 @@
(:html-klipsify-src nil nil org-html-klipsify-src)
(:html-klipse-css nil nil org-html-klipse-css)
(:html-klipse-js nil nil org-html-klipse-js)
- (:html-klipse-keep-old-src nil nil org-html-keep-old-src)
(:html-klipse-selection-script nil nil org-html-klipse-selection-script)
(:infojs-opt "INFOJS_OPT" nil nil)
;; Redefine regular options.
@@ -1572,12 +1571,6 @@ https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag"
:package-version '(Org . "9.1")
:type 'string)
-(defcustom org-html-keep-old-src nil
- "When non-nil, use <pre class=\"\"> instead of <pre><code class=\"\">."
- :group 'org-export-html
- :package-version '(Org . "9.1")
- :type 'boolean)
-
;;;; Todos
@@ -3384,12 +3377,16 @@ contextual information."
listing-number
(org-trim (org-export-data caption info))))))
;; Contents.
- (let ((open (if org-html-keep-old-src "<pre" "<pre><code"))
- (close (if org-html-keep-old-src "</pre>" "</code></pre>")))
- (format "%s class=\"src src-%s\"%s%s>%s%s"
- open lang label (if (and klipsify (string= lang "html"))
- " data-editor-type=\"html\"" "")
- code close)))))))
+ (if klipsify
+ (format "<pre><code class=\"src src-%s\"%s%s>%s</code></pre>"
+ lang
+ label
+ (if (string= lang "html")
+ " data-editor-type=\"html\""
+ "")
+ code)
+ (format "<pre class=\"src src-%s\"%s>%s</pre>"
+ lang label code)))))))
;;;; Statistics Cookie