From ebf0c103b6ca0a9034f0392aa114840160a6b496 Mon Sep 17 00:00:00 2001 From: James Crook Date: Tue, 13 Apr 2021 20:53:06 +0100 Subject: [PATCH] Bug 2744 - Manual: Incorrect escaping of backslash character --- scripts/mw2html_audacity/mw2html.py | 1 + scripts/mw2html_audacity/wiki2htmtemp.bat | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/mw2html_audacity/mw2html.py b/scripts/mw2html_audacity/mw2html.py index 3d4639380..dccbf763f 100644 --- a/scripts/mw2html_audacity/mw2html.py +++ b/scripts/mw2html_audacity/mw2html.py @@ -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') diff --git a/scripts/mw2html_audacity/wiki2htmtemp.bat b/scripts/mw2html_audacity/wiki2htmtemp.bat index a777dd0b7..ec45ef7fd 100644 --- a/scripts/mw2html_audacity/wiki2htmtemp.bat +++ b/scripts/mw2html_audacity/wiki2htmtemp.bat @@ -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