www

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

commit 2ecc50f7005f0858b2beb9e75a06b788b1aaeaf7
parent e1edcb358a5254a6520dba653221a88633989660
Author: Simon Kornblith <simon@simonster.com>
Date:   Sat, 26 May 2012 19:16:20 -0400

Replace double spaces by a single space, to make behavior more uniform with nsIScriptableUnescapeHTML

Diffstat:
Mchrome/content/zotero/xpcom/utilities.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -364,7 +364,7 @@ Zotero.Utilities = { } else { var node = document.createElement("div"); node.innerHTML = str; - return ("innerText" in node ? node.innerText : node.textContent); + return ("innerText" in node ? node.innerText : node.textContent).replace(/ {2,}/g, " "); } },