diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index ad6bc4f15..ef81c9b64 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -70,10 +70,12 @@ ["\\t ", ' '], [/(?:\\par |\\\r?\n)/g, "
"], [/\\super (.*?)\\nosupersub /g, "$1"], - [/\\sub (.*?)\\nosupersub /g, "$1"], + [/\\sub (.*?)\\nosupersub /g, "$1"] ]; this._htmlToRtfMap = [ + [/"(\w)/, "“$1"], + [/([\w,.?!])"/, "$1”"], [/[\x7F-\uFFFF]/g, function(aChar) { return "\\uc0\\u"+aChar.charCodeAt(0).toString()+" " }], ["
", ""], ["
", "\\par "], @@ -81,7 +83,7 @@ ["", "\\super "], ["", "\\nosupersub "], ["", "\\sub "], - ["", "\\nosupersub "], + ["", "\\nosupersub "] ]; this._rtfRexMap = [