Browse Source

Bug 2744 - Manual: Incorrect escaping of backslash character

au-ny-api
James Crook 1 year ago
parent
commit
ebf0c103b6
  1. 1
      scripts/mw2html_audacity/mw2html.py
  2. 2
      scripts/mw2html_audacity/wiki2htmtemp.bat

1
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')

2
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
Loading…
Cancel
Save