Fixed preformatted text

This commit is contained in:
M66B
2020-05-02 10:05:22 +02:00
parent 63ee1b1c99
commit 198612dac6
3 changed files with 7 additions and 6 deletions

View File

@@ -697,10 +697,11 @@ public class HtmlHelper {
// Pre formatted text
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre
for (Element pre : document.select("pre")) {
pre.html(formatPre(pre.wholeText()));
pre.tagName("div");
}
if (!view)
for (Element pre : document.select("pre")) {
pre.html(formatPre(pre.wholeText()));
pre.tagName("div");
}
// Code
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code