Replace double spaces by a single space, to make behavior more uniform with nsIScriptableUnescapeHTML
This commit is contained in:
parent
e1edcb358a
commit
2ecc50f700
|
@ -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, " ");
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user