Revert "Merge pull request #3195 from CommonLoon102/cl102/fix-bib-indent"

This reverts commit aca86967bf, reversing
changes made to 1a850d58c4.
This commit is contained in:
Adomas Venčkauskas 2023-07-18 10:55:14 +03:00
parent 9599d1712c
commit f61826281b

View file

@ -1348,11 +1348,18 @@ Zotero.Integration.Session.prototype._updateDocument = async function(forceCitat
} else {
bibliographyText = bib[0].bibstart+bib[1].join("")+bib[0].bibend;
}
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;
// 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;
}
}
// set bibliography text
@ -3632,4 +3639,4 @@ Zotero.Integration.LegacyPluginWrapper.wrapDocument = function wrapDocument(doc)
return doc.convert.apply(doc, arguments);
}
return wrapped;
}
}