[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [babel] problem removing label from src
From: |
Eric Schulte |
Subject: |
Re: [Orgmode] [babel] problem removing label from src |
Date: |
Thu, 12 Nov 2009 18:36:14 -0700 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (darwin) |
Hi Martin,
Thanks for pointing this out, our regular-expression was greedily
consuming too much of the source block switches. I've just pushed up a
change which should fix you issue.
Best -- Eric
"Martin G. Skjæveland" <address@hidden> writes:
> Hi all,
>
> I use the -r -l option for source blocks to change the format of
> labels. This works in org-mode without org-babel, but this does not
> fully work with org-babel (and I really like org-babel, so that's a
> shame :) )
>
> The following
>
> --------------start---------
> #+begin_src xml -n -r -l "<!--(ref:%s)-->"
> <test>
> <important/> <!--(ref:imp)-->
> </test>
> #+end_src
>
> Line no. [[(imp)]] is important!
> --------------end---------
>
> gives me
>
> 1: <test>
> 2: <important/> <!---->
> 3: </test>
> Line no. 2 is important!
>
>
> The label and reference works, but the label is not fully
> removed. <!----> is left behind.
>
> Thanks!
> Martin
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode