From 04fa4a09434044f42c28ce92cbab03b569a8418a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 18 Feb 2014 18:42:06 -0500 Subject: [PATCH] Fix Zotero crash pasting in creator with certain leading whitespace --- chrome/content/zotero/bindings/itembox.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml index fdd9a1841..5b1130662 100644 --- a/chrome/content/zotero/bindings/itembox.xml +++ b/chrome/content/zotero/bindings/itembox.xml @@ -1688,7 +1688,7 @@ var otherFields = this.getCreatorFields(row); otherFields[creatorField] = value; - var lastName = otherFields.lastName; + var lastName = otherFields.lastName.trim(); //Handle \n\r and \n delimited entries var rawNameArray = lastName.split(/\r\n?|\n/);