Am Tue, 15 Dec 2020 08:45:24 +0100 (CET)
schrieb Juergen Spitzmueller <sp...@lyx.org>:

> +     colre = re.compile(r'^\\set_color\s+(.*)\s+(.*)"', re.IGNORECASE)
> +     if not m:
> +             return no_match
> +     line += " " + m.group(2) + '"'

Are you sure?
Why not something like
        colre = re.compile(r'^\\set_color\s+("[^"]+")\s+("[^"]+")\s*$', 
re.IGNORECASE)
        if not m:
                return no_match
        line += " " + m.group(2)

        Kornel

Attachment: pgpbEceV3Nye7.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to