parse newlines to line breaks

This commit is contained in:
reschan 2022-06-16 16:14:56 +07:00
parent a1227f6e75
commit a1179911ab

View file

@ -596,7 +596,7 @@ function construct_AT(elem, tree) {
let active_tooltip_title = document.createElement('b');
active_tooltip_title.classList.add("scaled-font");
active_tooltip_title.textContent = node.title;
active_tooltip_title.innerHTML = node.title.replaceAll("\n", "<br>");
let active_tooltip_text = document.createElement('p');
active_tooltip_text.classList.add("scaled-font-sm");