Commit 482386e0 authored by m957ymj75urz's avatar m957ymj75urz
Browse files

Fix dynamic prompt removing newlines

parent e7d664c1
......@@ -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('}');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment