From c646a76992588ca43da382022a85b942cf9d78fb Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Sun, 18 Mar 2018 04:20:51 +0100
Subject: [PATCH] Fixed a minor issue

---
 templates/image_detail.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/templates/image_detail.html b/templates/image_detail.html
index c98d3d9..c8475f3 100644
--- a/templates/image_detail.html
+++ b/templates/image_detail.html
@@ -51,13 +51,15 @@
 
     };
 
+    // Insert <br> between lines instead of \n for editing
     fakeDescription.innerHTML = "";
     actualDescription.value.split("\n").forEach((line) => {
         const textNode = document.createTextNode(line);
         const brNode = document.createElement("br");
         fakeDescription.appendChild(textNode);
-        fakeDescription.appendChild(brNode)
+        fakeDescription.appendChild(brNode);
     });
+    fakeDescription.removeChild(fakeDescription.lastChild);
 
     fakeTitle.addEventListener("input", fakeTitleListener);
     fakeTitle.addEventListener("keypress", fakeTitleListener);
-- 
GitLab