emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Problem exporting code


From: Ken Williams
Subject: Re: [O] Problem exporting code
Date: Sun, 20 Jan 2013 23:52:33 -0600




On Sun, Jan 20, 2013 at 10:57 PM, Ken Williams <address@hidden> 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"> ?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]