mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-04-23 16:06:58 +08:00
Fix StringConstantMultiline
I have no idea what this even was about...
This commit is contained in:
parent
908c14b9cf
commit
16cbf238a7
@ -90,14 +90,10 @@ class StringConstantMultiline:
|
||||
CATEGORY = "KJNodes/constants"
|
||||
|
||||
def stringify(self, string, strip_newlines):
|
||||
new_string = []
|
||||
for line in io.StringIO(string):
|
||||
if not line.strip().startswith("\n") and strip_newlines:
|
||||
line = line.replace("\n", '')
|
||||
new_string.append(line)
|
||||
new_string = "\n".join(new_string)
|
||||
|
||||
return (new_string, )
|
||||
new_string = string
|
||||
if strip_newlines:
|
||||
new_string = new_string.replace('\n', '').strip()
|
||||
return (new_string,)
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user