[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem when tangling source blocks with custom coderefs
From: |
Ihor Radchenko |
Subject: |
Re: Problem when tangling source blocks with custom coderefs |
Date: |
Thu, 10 Nov 2022 06:27:24 +0000 |
Luis Osa <luis.osa.gdc@gmail.com> writes:
> I would like to tangle source code blocks that contain coderefs. I have
> found that the coderefs are correctly filtered out from the tangled files
> if they follow the default format, i.e. "(ref:%s)", but not if I try to
> customize the format using the documented "-l" switch [1] to change them to
> something else, e.g. "|%s|".
I have looked through the ML archives and a similar issue appears to be
fixed already. See
https://orgmode.org/list/878s5rt81v.fsf@nicolasgoaziou.fr
> Here is an example:
>
> #+begin_src python -r -l "|%s|" :tangle example.py
> try:
> sys.exit(app.run())
> except: |\label{line:except}\ding{182}|
> sys.exit(1)
> #+end_src
>
> In line \ref{line:except}, marked \ding{182}, we are catching all
> exceptions ...
Note that we only allow _-A-Za-z0-9 in the labels. So, your example will
not work even after the fix.
Not sure if we need to do anything about this.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Problem when tangling source blocks with custom coderefs,
Ihor Radchenko <=