diff --git a/chrome/content/zotero/xpcom/csl.js b/chrome/content/zotero/xpcom/csl.js index 3fa334f52..f4f93242b 100644 --- a/chrome/content/zotero/xpcom/csl.js +++ b/chrome/content/zotero/xpcom/csl.js @@ -2817,7 +2817,7 @@ Zotero.CSL.FormattedString.prototype.append = function(string, element, dontDeli } if(this.format == "RTF") { - string = string.replace(/[\x7F-\uFFFF]/g, Zotero.CSL.FormattedString._rtfEscapeFunction) + string = string.replace(/[{}\x7F-\uFFFF]/g, Zotero.CSL.FormattedString._rtfEscapeFunction) .replace("\t", "\\tab ", "g"); if(string.substr(string.length-5) == "\\tab ") { diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 47a94b115..27a63553f 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -607,7 +607,7 @@ Zotero.Integration.Document.prototype._updateDocument = function(forceCitations, var citationText = citation.properties.custom; // XML uses real RTF, rather than the format used for // integration, so we have to escape things properly - citationText = citationText.replace(/[\x7F-\uFFFF]/g, + citationText = citationText.replace(/[{}\x7F-\uFFFF]/g, Zotero.Integration.Session._rtfEscapeFunction). replace("\t", "\\tab ", "g"); } else {