clean title from multiple whitespaces

This commit is contained in:
Maks Snegov 2014-06-22 12:24:10 +04:00
parent ae63ca6318
commit 5c87f241d1

View File

@ -112,7 +112,7 @@ def embed_pictures(page, pict_urls):
def write_file(page, title, comment=None):
fname = title.replace('/', '_') + '.html'
fname = ' '.join(title.replace('/', '_').split()) + '.html'
inc = 1
while True:
if not os.path.exists(fname):