From 1b30c8b2b5821890eb12fda70a3f994ca9976887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Tue, 18 Jul 2023 10:58:12 +0300 Subject: [PATCH] Add a comment for bib style caching. Closes #3211 --- chrome/content/zotero/xpcom/integration.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 6f18a22fe0..6ba2affcd6 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1349,7 +1349,8 @@ Zotero.Integration.Session.prototype._updateDocument = async function(forceCitat bibliographyText = bib[0].bibstart+bib[1].join("")+bib[0].bibend; } - // if bibliography style not set, set it + // Only set the bibliography style once so that customizations + // to Bibliography style in word processors are maintained if(!this.data.style.bibliographyStyleHasBeenSet) { var bibStyle = Zotero.Cite.getBibliographyFormatParameters(bib);