On Thursday, 11 May 2017 15.06.42 WEST Jean-Marc Lasgouttes wrote: > I still get: > > File > "/home/local/lasgoutt/lyx/master/lib/scripts/lyxpreview2bitmap.py", line 166 > def_re = > re.compile(rb"(\\\\newcommandx|\\\\global\\\\long\\\\def)(\\\\[a-zA-Z]+)") > > ^ > SyntaxError: invalid syntax > > JMarc
Oops, my mistake it should be re.compile(b".... since I doubled the backslashes. I see that Günter already fixed the code. I have a new patch for other functions and as far as I can see that problem is not present there... Thank you, -- José Abílio