Fix dynamic prompt removing newlines

This commit is contained in:
m957ymj75urz 2023-02-19 22:02:01 +01:00
parent e7d664c137
commit 482386e03d

View File

@ -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('}');