commit c128c53704c467bf0fcc06d827248229e68fa727
parent 127cb259c12d13e9f5f3d3cabf5d41e569b0e207
Author: Simon Kornblith <simon@simonster.com>
Date: Thu, 18 Apr 2013 19:15:50 -0700
Merge pull request #307 from fbennett/4.0-rtfscan-fix
Use rebuildProcessorState() in RTF Scan. Fixes AGM SIG-CHI Proceedings.
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/rtfScan.js b/chrome/content/zotero/rtfScan.js
@@ -529,13 +529,15 @@ var Zotero_RTFScan = new function() {
itemIDs = [itemID for(itemID in itemIDs)];
Zotero.debug(itemIDs);
- style.updateItems(itemIDs);
+
+ // prepare the list of rendered citations
+ var citationResults = style.rebuildProcessorState(cslCitations, "rtf");
// format citations
var contentArray = [];
var lastEnd = 0;
for(var i=0; i<citations.length; i++) {
- var citation = style.appendCitationCluster(cslCitations[i], true)[0][1];
+ var citation = citationResults[i][2];
Zotero.debug("Formatted "+citation);
// if using notes, we might have to move the note after the punctuation