mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 21:40:19 +00:00
562917dc1c
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 |
||
---|---|---|
.. | ||
bash_completion | ||
checkKeys.pl.in | ||
clean_dvi.py | ||
CMakeLists.txt | ||
convert_pdf.py | ||
convertDefault.py | ||
csv2lyx.py | ||
ext_copy.py | ||
fen2ascii.py | ||
fig2pdftex.py | ||
fig2pstex.py | ||
fig_copy.py | ||
gnuplot2pdf.py | ||
html2latexwrapper.py | ||
include_bib.py | ||
layout2layout.py | ||
legacy_lyxpreview2ppm.py | ||
listerrors | ||
lyx_batch.pl.in | ||
lyxknitr.R | ||
lyxpak.py | ||
lyxpreview2bitmap.py | ||
lyxpreview_tools.py | ||
lyxstangle.R | ||
lyxsweave.R | ||
prefs2prefs_lfuns.py | ||
prefs2prefs_prefs.py | ||
prefs2prefs.py | ||
prefTest.pl.in | ||
prefTest.pm | ||
svg2pdftex.py | ||
svg2pstex.py | ||
tex_copy.py | ||
TeXFiles.py |