Hi Martin,

This appears to be a bug in org-mode at large, rather than anything
specifically babel related.

notice that the following slight alteration of your new reference syntax
works as expected

#+begin_src xml -n -r -l "ref:%s"
<test>
  <important/> ref:imp
</test>
#+end_src

Line no. [[(imp)]] is important!

Best -- Eric

"Martin G. Skjæveland" <mart...@ifi.uio.no> writes:

> Hi,
>
> when I export
>
> -----------------------------------start
> * test
> #+begin_src xml -n -r -l "<!--(ref:%s)-->"
> <test>
>   <important/> <!--(ref:imp)-->
> </test>
> #+end_src
>
> Line no. [[(imp)]] is important!
> -----------------------------------end
>
> to html I get (copying from my browser)
>
> -----------------------------------start
> 1 test
>
> 1:  <test>
> 2:    <important/> <!--(ref:imp)-->
> 3:  </test>
>
> Line no. nil is important!
> -----------------------------------end
>
> I would like "<!--(ref:imp)-->" in line 2 of the block to be removed
> from output and the last line to read "Line no. 2 is important!".
>
> Thanks!
>
> Martin
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please 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
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to