Save notes as plain text
This commit is contained in:
parent
4f84e635b7
commit
ba2f91d0d6
1 changed files with 3 additions and 3 deletions
|
@ -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"]));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue