emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Williams <kenahoo@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Problem exporting code
Date: Sun, 20 Jan 2013 23:52:33 -0600	[thread overview]
Message-ID: <CACrz-Hs2FJpy8jK4Jji9Kb_M25YYLYNi5pCMPid+sO16hWJ1AA@mail.gmail.com> (raw)
In-Reply-To: <CACrz-HvNtDRaMiht2pWOMrdssPNRUop_5FW3TwnrCt5JLZhuFA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1103 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2011 bytes --]

      parent reply	other threads:[~2013-01-21  5:52 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-20 23:44 Problem exporting code Ken Williams
2013-01-21  0:31 ` Ken Williams
2013-01-21  3:15   ` Eric S Fraga
2013-01-21  4:57     ` Ken Williams
2013-01-21  5:36       ` John Hendy
2013-01-21  5:38         ` John Hendy
2013-01-21  6:05         ` Ken Williams
2013-01-21  7:39           ` Eric S Fraga
2013-01-21 15:58             ` Ken Williams
2013-01-21 16:48               ` John Hendy
2013-01-21 17:45                 ` Ken Williams
2013-01-21 22:16                   ` John Hendy
2013-01-21 22:51                     ` Ken Williams
2013-01-22  0:14                       ` Thomas S. Dye
     [not found]                       ` <CA+M2ft_nyHsjC3V0FPvL+NbYBTP1FGKLqF0=miX09uByhS_oKA@mail.gmail.com>
2013-01-22  2:48                         ` Ken Williams
2013-01-22  7:01                           ` Thomas S. Dye
2013-01-22  7:49                             ` Bastien
2013-01-22 11:13                               ` Thorsten Jolitz
2013-01-22 11:54                                 ` Bastien
2013-01-22 12:58                                   ` Thorsten Jolitz
2013-01-22 19:45                                   ` Thorsten Jolitz
2013-01-22 21:41                                     ` Bastien
2013-01-22 13:02                               ` Ken Williams
2013-01-22 13:10                                 ` Bastien
2013-01-22 17:44                               ` Achim Gratz
2013-01-22 21:41                                 ` Bastien
2013-01-22 17:37                             ` Achim Gratz
2013-01-22 19:39                               ` Thomas S. Dye
2013-01-23  7:27                                 ` Achim Gratz
2013-01-21 23:43               ` Eric S Fraga
2013-01-21  6:11         ` Ken Williams
2013-01-21  5:52       ` Ken Williams [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACrz-Hs2FJpy8jK4Jji9Kb_M25YYLYNi5pCMPid+sO16hWJ1AA@mail.gmail.com \
    --to=kenahoo@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).