From 88c4cd1a09b01d0781caebc416d47aac8c72c377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Wed, 11 Dec 2019 10:44:24 +0200 Subject: [PATCH] Doc integration: fix a rtf wrapper being added to html output --- chrome/content/zotero/xpcom/integration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 403b6e15f5..306c93ce40 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -2383,7 +2383,7 @@ Zotero.Integration.Field = class { async setText(text) { var isRich = false; // If RTF wrap with RTF tags - if (text.includes("\\")) { + if (Zotero.Integration.currentSession.outputFormat == "rtf" && text.includes("\\")) { if (text.substr(0,5) != "{\\rtf") { text = "{\\rtf "+text+"}"; }