Fix for extra whitespace in titles
This commit is contained in:
1 parent
f5bfd9d4d1
commit
2aaff02db8
1 file changed
+2
-1
@@ -661,7 +661,8 @@ function setupTruncatedElementTitles() {
|
||||
|
||||
for (let i = 0; i < elements.length; i++) {
|
||||
const element = elements[i];
|
||||
if (element.getAttribute("title") === null) element.title = element.innerText;
|
||||
if (element.getAttribute("title") === null)
|
||||
element.title = element.innerText.trim().replace(/\s{2,}/, " ");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user