[PATCH] lyxpreview_tools.py: fix a regular expression

Enrico Forestieri forenr at lyx.org
Sun Feb 16 00:37:34 UTC 2020


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).

-- 
Enrico


More information about the lyx-devel mailing list