diff --git a/nevernote.py b/nevernote.py index 23309c2..86a9c2b 100755 --- a/nevernote.py +++ b/nevernote.py @@ -168,7 +168,7 @@ def write_file(page, title, comment=None): inc = 0 while True: inc += 1 - fname = ' '.join(title.replace('/', '_').split()) + write_inc(inc) + '.html' + fname = (' '.join(title.replace('/', '_').split()) + write_inc(inc))[:128] + '.html' if not os.path.exists(fname): break