From 75dff8b29261a3c8f48b1ac5bd61f143cee0ff2d Mon Sep 17 00:00:00 2001 From: mic Date: Tue, 30 Apr 2024 23:53:29 +0200 Subject: [PATCH] two empty lines added at the end of the inserted text --- js/mzta-utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/mzta-utils.js b/js/mzta-utils.js index 8186e579..b46b2169 100644 --- a/js/mzta-utils.js +++ b/js/mzta-utils.js @@ -85,6 +85,9 @@ const insertText = function (text, fullBody_string) { sibling = divider.previousSibling; } } + let final_p = document.createElement("p"); + final_p.innerHTML = "



"; + fullBody.body.insertBefore(final_p, fullBody.body.firstChild); makeParagraphs(text, function (p) { fullBody.body.insertBefore(p, fullBody.body.firstChild); });