Fix for extra whitespace in titles
This commit is contained in:
parent
f5bfd9d4d1
commit
2aaff02db8
1 changed files with 2 additions and 1 deletions
|
|
@ -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,}/, " ");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue