From 9c82304250311f2690c0d6d2605a94fdc9cbd24b Mon Sep 17 00:00:00 2001 From: W-Jan Date: Thu, 17 Mar 2016 00:23:12 +0100 Subject: [PATCH] Update zotfile.js --- chrome/content/zotfile/zotfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotfile/zotfile.js b/chrome/content/zotfile/zotfile.js index 389872e..3fcd4bf 100644 --- a/chrome/content/zotfile/zotfile.js +++ b/chrome/content/zotfile/zotfile.js @@ -1734,8 +1734,8 @@ Zotero.ZotFile = { //var filename = filename.replace(/ {2,}/g, ' '); filename = Zotero.Utilities.trimInternal(filename); - // replace blanks with '_' if option selected - if (this.prefs.getBoolPref("replace_blanks")) filename = filename.replace(/ /g, '_'); + // replace blanks with '' if option selected + if (this.prefs.getBoolPref("replace_blanks")) filename = filename.replace(/ /g, ''); // set to lower case if (this.prefs.getBoolPref("lower_case")) filename = filename.toLowerCase();