Handle newline character

This commit is contained in:
drozbay 2026-06-27 09:11:02 -06:00
parent 0480cb5bdf
commit 4cfbb19fd9

View File

@ -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: