Scott Kostyshak 562917dc1c lyxpreview_tools.py: fix a regular expression
Three backslashes are needed before a LaTeX command, not one. Before
this commit, the code gave the following error with Python >= 3.6:

  re.error: bad escape \g at position 29

This error was introduced with Python 3.6, as documented [1] by the
following line of documentation:

  Changed in version 3.6: Unknown escapes in pattern consisting of
  '\' and an ASCII letter now are errors.

Although previous Python versions did not give an error, the regular
expression was not working as intended: for example, the "\\n" in
"\\newcommandx" would be interpreted as a new line.

[1] https://docs.python.org/3.6/library/re.html#re.sub
2020-02-15 21:57:30 -05:00
..
2020-01-27 11:15:49 +01:00
2011-04-02 11:00:19 +00:00
2019-12-24 18:12:22 +01:00
2019-09-02 22:22:20 -04:00
2011-02-21 19:56:43 +00:00
2020-01-12 21:47:54 +01:00
2019-03-29 11:55:20 +01:00
2020-01-13 08:59:26 +01:00
2020-01-06 17:20:55 +01:00
2019-06-26 08:57:05 +02:00
2020-01-06 17:26:38 +01:00
2019-12-15 12:01:59 +01:00
2019-07-18 18:53:27 +02:00
2019-12-24 18:12:22 +01:00
2020-01-14 22:12:35 +01:00
2018-03-09 15:17:23 +01:00