[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: convert-ly rule for tocItem
From: |
Jonas Hahnfeld |
Subject: |
Re: convert-ly rule for tocItem |
Date: |
Mon, 24 Aug 2020 19:54:57 +0200 |
User-agent: |
Evolution 3.36.5 |
Am Sonntag, den 23.08.2020, 07:51 +0200 schrieb Noeck:
> I can confirm the issue.
Yep...
> And I think it is a bug in python/convertrules.py:4267. I found this:
>
> s = re.sub(r'\\tocItem\s+\"', r'\\tocItem \\markup \"', s)
>
> In the replacement string the " does not need to be escaped. And with
> the raw string r'' the backslash is interpreted literally.
... and yep. Not sure it needs to be escaped in the regular expression?
I've opened https://gitlab.com/lilypond/lilypond/-/issues/6024 just so
it doesn't get lost. If you want to, feel free to submit the fix as a
merge request 😉
> Am 22.08.20 um 20:33 schrieb Timothy Lanfear:
> > \version "2.20.0"
> >
> > \tocItem "Score A"
> > score { { a'1 } }
>
> ^
> Btw, a backslash is missing here.
>
>
> _______________________________________________
> bug-lilypond mailing list
> bug-lilypond@gnu.org
>
> https://lists.gnu.org/mailman/listinfo/bug-lilypond
>
>
signature.asc
Description: This is a digitally signed message part