diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml index d7732ca8dc..ab98b934f4 100644 --- a/chrome/content/zotero/bindings/styled-textbox.xml +++ b/chrome/content/zotero/bindings/styled-textbox.xml @@ -164,6 +164,28 @@ output = output.replace(needle, this._rtfMap[needle], "g"); } + // Preserve small caps + var l = output.split(/(<\/?span[^>]*>)/); + var current_level = 0; + var tag_level = []; + for (var pos=1; pos", "", "g"); output = output.replace("

", "\\par ", "g"); output = output.replace(/<\/?div[^>]*>/g, ""); @@ -236,6 +258,10 @@ html = html.replace(this._rtfMap[needle], needle, "g"); } } + + html = html.replace("\\scaps ", "", "g"); + html = html.replace("\\scaps0 ", "", "g"); + html = '

'+html.replace("\par ", "

")+"

"; Zotero.debug("setting content to "+html); }