diff options
author | Nik Clayton <nik@ngo.org.uk> | 2019-06-04 11:57:40 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-06-07 23:32:08 +0200 |
commit | ded3d27b1468b878197e5fe55a70c5e13350ea27 (patch) | |
tree | afe51f5048209f1543948ab16d4cacdedbd2b1c9 | |
parent | fb509122280d8215b6a5ed2c55d23d35ce8df0cc (diff) | |
download | org-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.el | 2 |
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. |