Remove the additional setText() call for libreoffice plugin
Possible since zotero/zotero-libreoffice-integration@2deea6bd46
This commit is contained in:
parent
88a6e4f79f
commit
921b21c3e1
1 changed files with 0 additions and 7 deletions
|
@ -1714,13 +1714,6 @@ Zotero.Integration.Fields.prototype._updateDocument = function* (forceCitations,
|
|||
var fieldCode = this._session.getCitationField(citation);
|
||||
if(fieldCode != citation.properties.field) {
|
||||
field.setCode(`ITEM CSL_CITATION ${fieldCode}`);
|
||||
|
||||
if(this._session.data.prefs.fieldType === "ReferenceMark" && isRich
|
||||
&& !citation.properties.dontUpdate) {
|
||||
// For ReferenceMarks with formatting, we need to set the text again, because
|
||||
// setting the field code removes formatting from the mark. I don't like this.
|
||||
field.setText(formattedCitation, isRich);
|
||||
}
|
||||
}
|
||||
nUpdated++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue