www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 71db21c6051635b47687072d99b88a4839c919ab
parent e1159b98389944edf8a3efadc1f218f74196c5c0
Author: Simon Kornblith <simon@simonster.com>
Date:   Wed, 12 Sep 2012 14:25:46 -0400

Fix nonbreaking spaces in citations edited using classic add citation dialog

Diffstat:
Mchrome/content/zotero/bindings/styled-textbox.xml | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/bindings/styled-textbox.xml b/chrome/content/zotero/bindings/styled-textbox.xml @@ -231,10 +231,9 @@ output = output.replace(entry[0], entry[1], "g"); } - output = Zotero.Utilities.unescapeHTML( - output.replace(" ", "&nbsp;", "g")) - .replace(highcharRe, - function(aChar) { return "\\uc0\\u"+aChar.charCodeAt(0).toString()+"{}" }); + output = Zotero.Utilities.unescapeHTML(output.replace(" ", "&nbsp;", "g")) + .replace("\u00A0", " ", "g") + .replace(highcharRe, function(aChar) { return "\\uc0\\u"+aChar.charCodeAt(0).toString()+"{}" }); output = Zotero.Utilities.trim(output); }