Correctly display whitespace characters in search error

This commit is contained in:
Guillaume Gomez 2023-06-13 10:50:16 +02:00
parent d1a76a9f50
commit 4f0a9124bd

View File

@ -2192,7 +2192,7 @@ function initSearch(rawSearchIndex) {
error.forEach((value, index) => {
value = value.split("<").join("&lt;").split(">").join("&gt;");
if (index % 2 !== 0) {
error[index] = `<code>${value}</code>`;
error[index] = `<code>${value.replaceAll(" ", "&nbsp;")}</code>`;
} else {
error[index] = value;
}