diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index d5c52e6fc0..f035c13a22 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -1359,7 +1359,8 @@ Zotero.Item.prototype.save = function() { var parent = this.isNote() ? this.getSource() : null; var noteText = this._noteText ? this._noteText : ''; // Add
' + note = '
' + note.replace(/\n/g, '
') .replace(/\t/g, ' ') .replace(/ /g, ' ') - + '
'; + + '\s*<\/p>/g, '
'); var sql = "UPDATE itemNotes SET note=? WHERE itemID=?"; Zotero.DB.query(sql, [note, this.id]); } // Don't include