From 7117f01a3e64726f4e069df21634647613325d4a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 13 Apr 2019 20:06:43 +0200 Subject: Fixed html rendering at line number view --- src/main/resources/js/fileview.js | 4 ++-- src/main/resources/views/fileview.rocker.html | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/resources/js/fileview.js b/src/main/resources/js/fileview.js index 039d618..c6b10f2 100644 --- a/src/main/resources/js/fileview.js +++ b/src/main/resources/js/fileview.js @@ -40,13 +40,13 @@ code.addEventListener("change", () => { content.classList.remove("prettyprinted"); content.innerHTML = ""; content.classList.add("linenums"); - content.innerHTML = originalContent; + content.innerText = originalContent; PR.prettyPrint(); } else { content.classList.remove("prettyprinted"); content.innerHTML = ""; content.classList.remove("linenums"); - content.innerHTML = originalContent; + content.innerText = originalContent; PR.prettyPrint(); } }); diff --git a/src/main/resources/views/fileview.rocker.html b/src/main/resources/views/fileview.rocker.html index 087aba7..bef1ad0 100644 --- a/src/main/resources/views/fileview.rocker.html +++ b/src/main/resources/views/fileview.rocker.html @@ -14,7 +14,6 @@ @layout.template("File " + filename, css, js) -> { - -- cgit v1.2.3