From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Unnecessary comma escapes in HTML export of #+INCLUDE files Date: Wed, 02 Sep 2009 03:40:55 -0400 Message-ID: <16221.1251877255@gamaville.dokosmarshall.org> References: <20090722011304.GY16388@hplhtang> <87tz15jgv3.fsf@bzg.ath.cx> <20090722173504.GZ16388@hplhtang> <87vdlizxha.fsf@bzg.ath.cx> <20090724054520.GB2207@hplhtang> <20090901220312.GP4172@hplhtang.hpl.hp.com> <8CB3B2C4-5114-4DC7-9BCD-BA44AAB5DB68@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MilQH-00064t-1K for emacs-orgmode@gnu.org; Wed, 02 Sep 2009 04:42:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MilQB-0005tJ-EL for emacs-orgmode@gnu.org; Wed, 02 Sep 2009 04:42:32 -0400 Received: from [199.232.76.173] (port=43305 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MilQB-0005sj-5o for emacs-orgmode@gnu.org; Wed, 02 Sep 2009 04:42:27 -0400 Received: from vms173009pub.verizon.net ([206.46.173.9]:42168) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MilQA-0005tg-M8 for emacs-orgmode@gnu.org; Wed, 02 Sep 2009 04:42:26 -0400 Received: from gamaville.dokosmarshall.org ([98.110.172.159]) by vms173009.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KPC006GJ2O7F4S1@vms173009.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 02 Sep 2009 02:40:55 -0500 (CDT) In-reply-to: Message from Carsten Dominik of "Wed, 02 Sep 2009 08:25:19 +0200." <8CB3B2C4-5114-4DC7-9BCD-BA44AAB5DB68@gmail.com> 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: Carsten Dominik Cc: "emacs-orgmode@gnu.org" Carsten Dominik wrote: > I am not able to reproduce the problem. > If the comment in a.sh starts with a space like this: ,---- | #!/bin/sh | | ## shell comment | echo "This is a test" `---- then the .txt file has a comma before the comment: ,---- | ... | 1 test | ~~~~~~~ | | #!/bin/sh | | , ## shell comment | echo "This is a test" `---- If there is no space, then the comma is not present. I'm really not sure how this is supposed to work - is that the intention? Thanks, Nick Versions: GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-08-09 on gamaville.dokosmarshall.org Org-mode version 6.30 (release_6.30.8.g8b6ff) (that includes my local changes, but nothing relating to this problem). Carsten Dominik wrote: > Hi Hsiu-Khuern, > > I am not able to reproduce the problem. > > - Carsten > > On Sep 2, 2009, at 12:03 AM, Hsiu-Khuern Tang wrote: > > > * On Fri 05:45AM +0000, 24 Jul 2009, Tang, Hsiu-Khuern (hsiu-khuern.tang@hp.com > > ) wrote: > >> * On Fri 01:22AM +0000, 24 Jul 2009, Bastien (bastienguerry@googlemail.com > >> ) wrote: > >>> 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. > >> > >> It works beautifully now. Thank you very much for the fix! > > > > It looks Org has reverted to the old behavior: inserting a comma at > > a beginning > > of every line in the #INCLUDE'd file that starts with whitespace > > followed by #. > > > > For example, if you export this as ascii (see > > http://article.gmane.org/gmane.emacs.orgmode/15718): > > > > File 1: a.org > > ================================================== > > * test > > > > #+INCLUDE: "a.sh" src sh > > ================================================== > > > > File 2: a.sh > > ================================================== > > #!/bin/sh > > > > ## shell comment > > echo "This is a test" > > ================================================== > > > > the output contains the line ", ## shell comment". > > > > Related question: what git commands does one use to obtain all the > > commits that > > changed a particular range of lines in a file? I'm quite lost with > > git. > > > > -- > > Best, > > Hsiu-Khuern. > > > > > > _______________________________________________ > > Emacs-orgmode mailing list > > Remember: use `Reply All' to send replies to the list. > > Emacs-orgmode@gnu.org > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >