Merge pull request #10803 from Seris02/highlightfix

fixes the whitespace that gets created when you have highlighting strings on
This commit is contained in:
Putnam3145
2020-02-01 04:15:47 -08:00
committed by GitHub
@@ -229,7 +229,7 @@ function highlightTerms(el) {
console.log(newWord)
}
newText += newWord || words[w].replace("<", "&lt;");
newText += w >= words.length ? '' : ' ';
newText += w >= words.length - 1 ? '' : ' ';
}
} else { //Every other type of element
newText += outerHTML(el.childNodes[c]);