mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Correctly display whitespace characters in search error
This commit is contained in:
parent
d1a76a9f50
commit
4f0a9124bd
@ -2192,7 +2192,7 @@ function initSearch(rawSearchIndex) {
|
||||
error.forEach((value, index) => {
|
||||
value = value.split("<").join("<").split(">").join(">");
|
||||
if (index % 2 !== 0) {
|
||||
error[index] = `<code>${value}</code>`;
|
||||
error[index] = `<code>${value.replaceAll(" ", " ")}</code>`;
|
||||
} else {
|
||||
error[index] = value;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user