use underscores for spaces instead of removing them entirely

This commit is contained in:
Valentin Boettcher 2024-09-01 20:53:55 -04:00
parent 4296f6b6c4
commit 800a291ed6
No known key found for this signature in database
GPG key ID: E034E12B7AF56ACE

View file

@ -183,7 +183,7 @@ async def wait_for_new_message(imap_client, options: Options):
logger.debug(str(body))
continue
filename = f"{doc_title.replace(' ','')}"
filename = f"{doc_title.replace(' ','_')}"
if page:
filename += f"_{page}_pages"