From: Hsiu-Khuern Tang <hsiu-khuern.tang@hp.com>
To: emacs-orgmode@gnu.org
Subject: Re: Unnecessary comma escapes in HTML export of #+INCLUDE files
Date: Wed, 22 Jul 2009 10:35:05 -0700 [thread overview]
Message-ID: <20090722173504.GZ16388@hplhtang> (raw)
In-Reply-To: <87tz15jgv3.fsf@bzg.ath.cx>
* On Wed 07:50AM +0000, 22 Jul 2009, Bastien (bastienguerry@googlemail.com) wrote:
> Hi,
>
> "Tang, Hsiu-Khuern" <hsiu-khuern.tang@hp.com> writes:
>
> > If I include a file in my Org file, say using
> >
> > #+INCLUDE: "script.sh" src sh
> >
> > and export to HTML, the included file shows up as a <pre> block, which is nice.
> > However, a leading comma is put in front of every line that starts with a #,
> > even those with leading whitespace. I understand that a comma is used to
> > escape # in the first column of literal examples, to distinguish from Org
> > comment lines. (This escaping is no longer strictly necessary, since the
> > #+BEGIN_EXAMPLE block can now be indented.)
>
> I cannot reproduce this.
>
> Which version of Org are you using?
I'm using 6.28trans. Can you try to reproduce this using these two files:
File 1: a.org
==================================================
* test
#+INCLUDE: "a.sh" src sh
==================================================
File 2: a.sh
==================================================
#!/bin/sh
## shell comment
echo "This is a test"
==================================================
If I export a.org to HTML, the output has a comma before " ## shell comment"
(but none before "#!/bin/sh", so maybe only lines with leading whitespace
before a # are affected).
Actually, the problem shows up even when exporting to ascii:
==================================================
Author: <htang@localhost>
Date: 2009-07-22 10:31:37 PDT
Table of Contents
=================
1 test
1 test
~~~~~~~
#!/bin/sh
, ## shell comment
echo "This is a test"
==================================================
Thanks for looking into this!
--
Best,
Hsiu-Khuern.
next prev parent reply other threads:[~2009-07-22 17:35 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-22 1:13 Unnecessary comma escapes in HTML export of #+INCLUDE files Tang, Hsiu-Khuern
2009-07-22 7:50 ` Bastien
2009-07-22 17:35 ` Hsiu-Khuern Tang [this message]
2009-07-24 1:22 ` Bastien
2009-07-24 5:45 ` Hsiu-Khuern Tang
2009-09-01 22:03 ` Hsiu-Khuern Tang
[not found] ` <hsiu-khuern.tang@hp.com>
2009-09-01 22:47 ` Nick Dokos
2009-09-02 0:09 ` Hsiu-Khuern Tang
2009-09-02 6:25 ` Carsten Dominik
2009-09-02 7:40 ` Nick Dokos
2009-09-02 9:33 ` Carsten Dominik
2009-09-03 5:34 ` Hsiu-Khuern Tang
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090722173504.GZ16388@hplhtang \
--to=hsiu-khuern.tang@hp.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.