Browse Source

Fix dynamic prompt removing newlines

pull/14/head
m957ymj75urz 2 years ago
parent
commit
482386e03d
  1. 2
      webshit/index.html

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

Loading…
Cancel
Save