On Sun, Jan 20, 2013 at 10:57 PM, Ken Williams <[email protected]> wrote:
>
> I'm grasping at straws too, not knowing my way around the elisp code very
> well. =)
>
It looks like the function controlling this behavior is
`org-export-format-source-code-or-example`, in org-exp.el:
(if (string-match "<pre\\([^>]*\\)>\n*" rtn)
(setq rtn
(concat
(if caption
(concat
"<div class=\"org-src-container\">"
(format
"<label
class=\"org-src-name\">%s</label>"
caption))
"")
(replace-match
(format "<pre class=\"src src-%s\">\n" lang)
t t rtn)
(if caption "</div>" "")))))
So the <pre> tag gets inserted first, then later gets replaced by <pre
class="src src-R"> ?