mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-05 14:10:45 +08:00
Handle newline character
This commit is contained in:
parent
0480cb5bdf
commit
4cfbb19fd9
@ -30,6 +30,8 @@ class TextOverlay(IO.ComfyNode):
|
|||||||
if text.strip() == "":
|
if text.strip() == "":
|
||||||
return IO.NodeOutput(image)
|
return IO.NodeOutput(image)
|
||||||
|
|
||||||
|
text = text.replace("\\n", "\n").replace("\\t", "\t")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
fill_color = ImageColor.getrgb(text_color)[:3]
|
fill_color = ImageColor.getrgb(text_color)[:3]
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user