From 11368f8ff9037a8b2ecc1945bec050535f9f00db Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 19 Mar 2023 15:49:16 +0200 Subject: [PATCH] minor fix to toggleReplyBox --- files/assets/js/comments_v.js | 1 + 1 file changed, 1 insertion(+) diff --git a/files/assets/js/comments_v.js b/files/assets/js/comments_v.js index 01a253d26..04a6d538d 100644 --- a/files/assets/js/comments_v.js +++ b/files/assets/js/comments_v.js @@ -65,6 +65,7 @@ function toggleReplyBox(id) { text = text.split('> Reply')[0] text = text.replace(/\*/g,"\\*") + if (ta.value && !ta.value.endsWith('\n')) ta.value += '\n' ta.value += text if (!ta.value.endsWith('\n')) ta.value += '\n' }