From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hsiu-Khuern Tang Subject: Re: Unnecessary comma escapes in HTML export of #+INCLUDE files Date: Wed, 22 Jul 2009 10:35:05 -0700 Message-ID: <20090722173504.GZ16388@hplhtang> References: <20090722011304.GY16388@hplhtang> <87tz15jgv3.fsf@bzg.ath.cx> Reply-To: Hsiu-Khuern Tang Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MTfiq-00053B-J6 for emacs-orgmode@gnu.org; Wed, 22 Jul 2009 13:35:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MTfil-0004yT-UH for emacs-orgmode@gnu.org; Wed, 22 Jul 2009 13:35:20 -0400 Received: from [199.232.76.173] (port=51160 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MTfil-0004yL-LJ for emacs-orgmode@gnu.org; Wed, 22 Jul 2009 13:35:15 -0400 Received: from gundega.hpl.hp.com ([192.6.19.190]:56217) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MTfik-0001gp-Ra for emacs-orgmode@gnu.org; Wed, 22 Jul 2009 13:35:15 -0400 Received: from mailhub-pa1.hpl.hp.com (mailhub-pa1.hpl.hp.com [15.25.115.25]) by gundega.hpl.hp.com (8.14.3/8.14.1/HPL-PA Relay) with ESMTP id n6MHZ4Hq020052 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 22 Jul 2009 10:35:05 -0700 (PDT) Received: from hplhtang.hpl.hp.com (hplhtang.hpl.hp.com [15.4.92.39]) by mailhub-pa1.hpl.hp.com (8.14.3/8.14.3/HPL-PA Hub) with ESMTP id n6MHZ41H018842 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 22 Jul 2009 10:35:04 -0700 Received: from htang by hplhtang.hpl.hp.com with local (Exim 4.69) (envelope-from ) id 1MTfib-0007d3-3m for emacs-orgmode@gnu.org; Wed, 22 Jul 2009 10:35:05 -0700 Content-Disposition: inline In-Reply-To: <87tz15jgv3.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org * On Wed 07:50AM +0000, 22 Jul 2009, Bastien (bastienguerry@googlemail.com) wrote: > Hi, > > "Tang, Hsiu-Khuern" 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
 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:  
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.