Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
482386e0
Commit
482386e0
authored
Feb 19, 2023
by
m957ymj75urz
Browse files
Fix dynamic prompt removing newlines
parent
e7d664c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
webshit/index.html
webshit/index.html
+1
-1
No files found.
webshit/index.html
View file @
482386e0
...
...
@@ -330,7 +330,7 @@ function graphToPrompt() {
widget
.
value_initial
=
widget
.
input_div
.
innerText
;
// resolve the string
var
prompt
=
widget
.
input_div
.
textConten
t
;
var
prompt
=
widget
.
input_div
.
innerTex
t
;
while
(
prompt
.
includes
(
'
{
'
)
&&
prompt
.
includes
(
'
}
'
))
{
const
startIndex
=
prompt
.
indexOf
(
'
{
'
);
const
endIndex
=
prompt
.
indexOf
(
'
}
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment