mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-07-03 21:20:49 +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() == "":
|
||||
return IO.NodeOutput(image)
|
||||
|
||||
text = text.replace("\\n", "\n").replace("\\t", "\t")
|
||||
|
||||
try:
|
||||
fill_color = ImageColor.getrgb(text_color)[:3]
|
||||
except ValueError:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user