two empty lines added at the end of the inserted text

This commit is contained in:
mic 2024-04-30 23:53:29 +02:00
parent 4a789bac11
commit 75dff8b292

View file

@ -85,6 +85,9 @@ const insertText = function (text, fullBody_string) {
sibling = divider.previousSibling;
}
}
let final_p = document.createElement("p");
final_p.innerHTML = "<p><br/><br/></p>";
fullBody.body.insertBefore(final_p, fullBody.body.firstChild);
makeParagraphs(text, function (p) {
fullBody.body.insertBefore(p, fullBody.body.firstChild);
});