From 8cbc1af2359013ec14cbd4a47b1804c3426eb985 Mon Sep 17 00:00:00 2001 From: Sandra Date: Wed, 1 Apr 2020 16:48:03 +0200 Subject: [PATCH] fix slash --- dumpwiki.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dumpwiki.py b/dumpwiki.py index 02b1aa5..03182d3 100644 --- a/dumpwiki.py +++ b/dumpwiki.py @@ -48,8 +48,10 @@ with open('login.txt', 'r') as login: # read login user & pwd with open('templates/title.html') as title_html: title_template = Template(title_html.read()) +SLASH = "\u2044" + def filenameforpage(p): - f=p.name.replace(' ','_') + '.html' + f=p.name.replace(' ','_').replace('/', SLASH) + '.html' return f title=site.Categories['Title']