summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNik Clayton <nik@ngo.org.uk>2019-06-04 11:57:40 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2019-06-07 23:32:08 +0200
commitded3d27b1468b878197e5fe55a70c5e13350ea27 (patch)
treeafe51f5048209f1543948ab16d4cacdedbd2b1c9
parentfb509122280d8215b6a5ed2c55d23d35ce8df0cc (diff)
downloadorg-mode-ded3d27b1468b878197e5fe55a70c5e13350ea27.tar.gz
ox-html: Wrap each line of a source block in a code element
* lisp/ox-html.el (org-html-do-format-code): Wrap each line of a source block in a code element. This makes it straightforward to add custom decorations to each line using CSS :before and :after properties. TINYCHANGE
-rw-r--r--lisp/ox-html.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 4e7ff5c..157905e 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2255,7 +2255,7 @@ line of code."
(format "<span class=\"linenr\">%s</span>"
(format num-fmt line-num)))
;; Transcoded src line.
- loc
+ (format "<code>%s</code>" loc)
;; Add label, if needed.
(when (and ref retain-labels) (format " (%s)" ref))))
;; Mark transcoded line as an anchor, if needed.