Merge pull request #3195 from CommonLoon102/cl102/fix-bib-indent
Fix indentation in bibliography
This commit is contained in:
commit
aca86967bf
1 changed files with 6 additions and 13 deletions
|
@ -1349,17 +1349,10 @@ Zotero.Integration.Session.prototype._updateDocument = async function(forceCitat
|
|||
bibliographyText = bib[0].bibstart+bib[1].join("")+bib[0].bibend;
|
||||
}
|
||||
|
||||
// if bibliography style not set, set it
|
||||
if(!this.data.style.bibliographyStyleHasBeenSet) {
|
||||
var bibStyle = Zotero.Cite.getBibliographyFormatParameters(bib);
|
||||
|
||||
// set bibliography style
|
||||
await this._doc.setBibliographyStyle(bibStyle.firstLineIndent, bibStyle.indent,
|
||||
bibStyle.lineSpacing, bibStyle.entrySpacing, bibStyle.tabStops, bibStyle.tabStops.length);
|
||||
|
||||
// set bibliographyStyleHasBeenSet parameter to prevent further changes
|
||||
this.data.style.bibliographyStyleHasBeenSet = true;
|
||||
}
|
||||
var bibStyle = Zotero.Cite.getBibliographyFormatParameters(bib);
|
||||
await this._doc.setBibliographyStyle(bibStyle.firstLineIndent, bibStyle.indent,
|
||||
bibStyle.lineSpacing, bibStyle.entrySpacing, bibStyle.tabStops, bibStyle.tabStops.length);
|
||||
this.data.style.bibliographyStyleHasBeenSet = true;
|
||||
}
|
||||
|
||||
// set bibliography text
|
||||
|
|
Loading…
Add table
Reference in a new issue