commit ba2f91d0d61fb22baa645f482477c4e725229f85
parent 4f84e635b7d917c0b9c5c83190fd854138c8bd69
Author: Simon Kornblith <simon@simonster.com>
Date: Fri, 27 May 2011 19:39:28 +0000
Save notes as plain text
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/translators/BibTeX.js b/translators/BibTeX.js
@@ -10,7 +10,7 @@
"configOptions":{"dataMode":"block"},
"displayOptions":{"exportCharset":"UTF-8", "exportFileData":false},
"inRepository":true,
- "lastUpdated":"2011-05-12 21:20:00"
+ "lastUpdated":"2011-05-27 19:35:42"
}
function detectImport() {
@@ -1632,7 +1632,7 @@ function processField(item, field, value) {
item.tags = value.split(/, ?/g);
}
} else if (field == "comment" || field == "annote" || field == "review") {
- item.notes.push({note:value});
+ item.notes.push({note:Zotero.Utilities.text2html(value)});
} else if (field == "pdf") {
if (/:\/\//.test(value)) { // a full uri is given
item.attachments = [{url:value, mimeType:"application/pdf", downloadable:true}];
@@ -2076,7 +2076,7 @@ function doExport() {
}
if (item.notes) {
for each (var note in item.notes) {
- writeField("annote", note["note"]);
+ writeField("annote", Zotero.Utilities.unescapeHTML(note["note"]));
}
}