Trans: Fix whitespace in IEEE Xplore abstracts

This commit is contained in:
Avram Lyon 2011-03-30 19:28:22 +00:00
parent d665f800a3
commit 2b7837efd4

View file

@ -193,7 +193,7 @@ function scrape(doc,url)
// Abstracts don't seem to come with // Abstracts don't seem to come with
if (!newItem.abstractNote) { if (!newItem.abstractNote) {
var abstractNode = doc.evaluate('//a[@name="Abstract"]/following-sibling::p[1]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext(); var abstractNode = doc.evaluate('//a[@name="Abstract"]/following-sibling::p[1]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext();
if (abstractNode) newItem.abstractNote = abstractNode.textContent; if (abstractNode) newItem.abstractNote = Zotero.Utilities.trimInternal(abstractNode.textContent);
} }
newItem.complete(); newItem.complete();
} }