From 482386e03d50c450920109cab54180d75ca42286 Mon Sep 17 00:00:00 2001 From: m957ymj75urz Date: Sun, 19 Feb 2023 22:02:01 +0100 Subject: [PATCH] Fix dynamic prompt removing newlines --- webshit/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webshit/index.html b/webshit/index.html index 96fddf9b..7befd47f 100644 --- a/webshit/index.html +++ b/webshit/index.html @@ -330,7 +330,7 @@ function graphToPrompt() { widget.value_initial = widget.input_div.innerText; // resolve the string - var prompt = widget.input_div.textContent; + var prompt = widget.input_div.innerText; while (prompt.includes('{') && prompt.includes('}')) { const startIndex = prompt.indexOf('{'); const endIndex = prompt.indexOf('}');