# [PATCH] lyxpreview_tools.py: fix a regular expression

Scott Kostyshak skostysh at lyx.org
Sun Feb 16 03:00:29 UTC 2020

```On Sun, Feb 16, 2020 at 01:37:34AM +0100, Enrico Forestieri wrote:
> On Sat, Feb 15, 2020 at 02:03:43PM -0500, Scott Kostyshak wrote:
>
> > Attached is a patch for lyxpreview_tools.py, but I don't know Python
> > well and I don't know how to test whether this code works as intended
> > now or not. All I know is it gets rid of the error.
> >
> > I originally saw that error on master when opening the User Guide with
> > Preview enabled.
> >
> > Can someone give the patch a check?
>
> I think your patch is correct. Initially it was rb"..." but this gives a
> syntax error with python2. I changed it to b"..." but forgot to escape the
> backslashes (without r, to get a backslash you have to write two of them).

Thanks for taking a look, Enrico. Pushed at 562917dc.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available