From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Unnecessary comma escapes in HTML export of #+INCLUDE files Date: Fri, 24 Jul 2009 03:22:09 +0200 Message-ID: <87vdlizxha.fsf@bzg.ath.cx> References: <20090722011304.GY16388@hplhtang> <87tz15jgv3.fsf@bzg.ath.cx> <20090722173504.GZ16388@hplhtang> 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 1MU9UQ-0005NQ-2J for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 21:22:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MU9UL-0005NE-Lq for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 21:22:25 -0400 Received: from [199.232.76.173] (port=42428 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MU9UL-0005NB-Gf for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 21:22:21 -0400 Received: from mail-px0-f193.google.com ([209.85.216.193]:39674) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MU9UL-0001JG-43 for emacs-orgmode@gnu.org; Thu, 23 Jul 2009 21:22:21 -0400 Received: by pxi31 with SMTP id 31so927259pxi.14 for ; Thu, 23 Jul 2009 18:22:19 -0700 (PDT) In-Reply-To: <20090722173504.GZ16388@hplhtang> (Hsiu-Khuern Tang's message of "Wed, 22 Jul 2009 10:35:05 -0700") 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 Hi Hsiu-Khuern, I've just pushed a fix for this: when the "src" switch is present, including a file won't escape org-like lines. With a bare #+include we still escape lines starting with * or #. Please test it and report any problem. Thanks, Hsiu-Khuern Tang writes: > 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! -- Bastien