Temporarily restore double text setting in LibreOffice for footnotes
Regressions from 921b21c3
. Footnotes in LibreOffice lose styling
This commit is contained in:
parent
81783070a2
commit
da387874a2
1 changed files with 7 additions and 0 deletions
|
@ -1714,6 +1714,13 @@ Zotero.Integration.Fields.prototype._updateDocument = function* (forceCitations,
|
||||||
var fieldCode = this._session.getCitationField(citation);
|
var fieldCode = this._session.getCitationField(citation);
|
||||||
if(fieldCode != citation.properties.field) {
|
if(fieldCode != citation.properties.field) {
|
||||||
field.setCode(`ITEM CSL_CITATION ${fieldCode}`);
|
field.setCode(`ITEM CSL_CITATION ${fieldCode}`);
|
||||||
|
if(this._session.data.prefs.fieldType === "ReferenceMark"
|
||||||
|
&& this._session.data.prefs.noteType != 0 && 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++;
|
nUpdated++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue