From 9755c2aab1b9c25395fbde854fff75bc6d9afed2 Mon Sep 17 00:00:00 2001 From: Will Budicm Date: Fri, 25 Dec 2020 20:30:17 +1100 Subject: [PATCH] On log edit wasn't stripping encaps. log div. --- htdocs/cgi-bin/wsrc/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/cgi-bin/wsrc/main.js b/htdocs/cgi-bin/wsrc/main.js index 214989a..532b5cc 100644 --- a/htdocs/cgi-bin/wsrc/main.js +++ b/htdocs/cgi-bin/wsrc/main.js @@ -502,6 +502,8 @@ function edit(row) { } else { var txt = log.html(); txt = txt.replace(/
/g,"\n"); + txt = txt.replace(/^
/,""); + txt = txt.replace(/<\/div>$/,""); $("#el").val(decodeToText(txt)); } -- 2.34.1