clean title from multiple whitespaces
This commit is contained in:
parent
ae63ca6318
commit
5c87f241d1
@ -112,7 +112,7 @@ def embed_pictures(page, pict_urls):
|
|||||||
|
|
||||||
|
|
||||||
def write_file(page, title, comment=None):
|
def write_file(page, title, comment=None):
|
||||||
fname = title.replace('/', '_') + '.html'
|
fname = ' '.join(title.replace('/', '_').split()) + '.html'
|
||||||
inc = 1
|
inc = 1
|
||||||
while True:
|
while True:
|
||||||
if not os.path.exists(fname):
|
if not os.path.exists(fname):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user