emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: nicholas.dokos@hp.com
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Unnecessary comma escapes in HTML export of #+INCLUDE files
Date: Wed, 2 Sep 2009 11:33:46 +0200	[thread overview]
Message-ID: <1B3BC392-A83A-46DF-8B0F-6C475D060477@gmail.com> (raw)
In-Reply-To: <16221.1251877255@gamaville.dokosmarshall.org>

Ah, yes, thank you for that detail.

Fixed now.

- Carsten

On Sep 2, 2009, at 9:40 AM, Nick Dokos wrote:

> Carsten Dominik <carsten.dominik@gmail.com> 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 <carsten.dominik@gmail.com> 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
>>
>
>

  reply	other threads:[~2009-09-02  9:34 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
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 [this message]
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

  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=1B3BC392-A83A-46DF-8B0F-6C475D060477@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    /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).