On Sun, Jan 20, 2013 at 10:57 PM, Ken Williams 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 "]*\\)>\n*" rtn) (setq rtn (concat (if caption (concat "
" (format "" caption)) "") (replace-match (format "
\n" lang)
                                t t rtn)
                               (if caption "
" ""))))) So the
 tag gets inserted first, then later gets replaced by 
 ?