From 3d5f75e65e61949079930eec38e9cab749027cc7 Mon Sep 17 00:00:00 2001 From: ayushtamra Date: Thu, 30 Jun 2022 20:43:54 +0530 Subject: [PATCH] Improving copy to clipboard feature- Removing extra lines Signed-off-by: ayushtamra --- layouts/partials/hooks/body-end.html | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts/partials/hooks/body-end.html b/layouts/partials/hooks/body-end.html index e4442cb790e05..9a35a43e429ba 100644 --- a/layouts/partials/hooks/body-end.html +++ b/layouts/partials/hooks/body-end.html @@ -23,6 +23,7 @@ document.body.appendChild(target); } target.value = document.getElementById(elem).innerText; + target.value = target.value.replace(/\n\n/gm,"\n").trim(); // select the content target.select();