Doc integration: fix a rtf wrapper being added to html output

This commit is contained in:
Adomas Venčkauskas 2019-12-11 10:44:24 +02:00
parent d2e14cfff4
commit 88c4cd1a09

View file

@ -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+"}";
}