From 921b21c3e161a0c60946bd7c47b5113ee109ba54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 16 Nov 2017 12:54:33 +0200 Subject: [PATCH] Remove the additional setText() call for libreoffice plugin Possible since zotero/zotero-libreoffice-integration@2deea6bd46b50f72cdc937a468e88ab6cd4461ad --- chrome/content/zotero/xpcom/integration.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index ed480aa4d..877b84403 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -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++; }