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:
commit
c128c53704
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue