Doc integration: fix a rtf wrapper being added to html output
This commit is contained in:
parent
d2e14cfff4
commit
88c4cd1a09
1 changed files with 1 additions and 1 deletions
|
@ -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+"}";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue