Merge pull request #307 from fbennett/4.0-rtfscan-fix

Use rebuildProcessorState() in RTF Scan. Fixes AGM SIG-CHI Proceedings.
This commit is contained in:
Simon Kornblith 2013-04-18 19:15:50 -07:00
commit c128c53704

View file

@ -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