www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit da387874a2bc5b7639b12286e8f9af8b7e9a6782
parent 81783070a21e2d0d113fbda3a70833417557f11f
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date:   Mon, 27 Nov 2017 17:24:40 +0200

Temporarily restore double text setting in LibreOffice for footnotes

Regressions from 921b21c3. Footnotes in LibreOffice lose styling

Diffstat:
Mchrome/content/zotero/xpcom/integration.js | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js @@ -1714,6 +1714,13 @@ 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" + && 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++; }