diff --git a/nevernote.py b/nevernote.py index 2eae6b5..db746bb 100755 --- a/nevernote.py +++ b/nevernote.py @@ -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):