Bug 2744 - Manual: Incorrect escaping of backslash character

This commit is contained in:
James Crook 2021-04-13 20:53:06 +01:00
parent 910addfc7e
commit ebf0c103b6
2 changed files with 2 additions and 1 deletions

View File

@ -946,6 +946,7 @@ def parse_html(doc, url, filename):
newdoc = newdoc.replace('\\n','\n')
newdoc = newdoc.replace('\\t', '\t')
newdoc = newdoc.replace('\\\'', '\'')
newdoc = newdoc.replace('\\\\', '\\')
newdoc = newdoc.replace('\\xe2\\x80\\x99','\'')
newdoc = newdoc.replace('\\xe2\\x80\\x90', '-')
newdoc = newdoc.strip('b')

View File

@ -1,5 +1,5 @@
@REM wiki2htm without the xcopy. The results stay in the temp directory.
@REM Can be convenient when testing/modifying the script.
python3 mw2html.py https://alphamanual.audacityteam.org/man ..\..\help\temp -s
python mw2html.py https://alphamanual.audacityteam.org/man ..\..\help\temp -s