diff --git a/chrome/content/zotero/fileInterface.js b/chrome/content/zotero/fileInterface.js index b3ef0cde39..8f8128c384 100644 --- a/chrome/content/zotero/fileInterface.js +++ b/chrome/content/zotero/fileInterface.js @@ -81,7 +81,12 @@ Zotero_File_Exporter.prototype.save = async function () { } if (this.items.length == 1) { - let noteTitle = Zotero.Utilities.Item.noteToTitle(this.items[0].getNote()); + let noteTitle = Zotero.Utilities.Item.noteToTitle( + this.items[0].getNote(), + // Stop at
to exclude date from annotation notes, which won't be a valid + // filename in many locales + { stopAtLineBreak: true } + ); if (noteTitle) { this.name = Zotero.File.getValidFileName(noteTitle); }