mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-05-24 02:20:04 +08:00
Fix dynamic prompt removing newlines
This commit is contained in:
parent
e518a68b35
commit
49a32d7ba1
@ -330,7 +330,7 @@ function graphToPrompt() {
|
|||||||
widget.value_initial = widget.input_div.innerText;
|
widget.value_initial = widget.input_div.innerText;
|
||||||
|
|
||||||
// resolve the string
|
// resolve the string
|
||||||
var prompt = widget.input_div.textContent;
|
var prompt = widget.input_div.innerText;
|
||||||
while (prompt.includes('{') && prompt.includes('}')) {
|
while (prompt.includes('{') && prompt.includes('}')) {
|
||||||
const startIndex = prompt.indexOf('{');
|
const startIndex = prompt.indexOf('{');
|
||||||
const endIndex = prompt.indexOf('}');
|
const endIndex = prompt.indexOf('}');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user