Am Tue, 15 Dec 2020 09:59:43 +0100 schrieb Jürgen Spitzmüller <sp...@lyx.org>:
> Am Di., 15. Dez. 2020 um 09:57 Uhr schrieb Kornel Benko <kor...@lyx.org>: > > > 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) > > > > Feel free to improve! > > Jürgen Maybe I am too picky. For our use both versions give the same result. Kornel
pgppJlLTsjCQ3.pgp
Description: Digitale Signatur von OpenPGP
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel