From 4cfbb19fd9417bf7295f92efb2f07888d779ceb4 Mon Sep 17 00:00:00 2001 From: drozbay <17261091+drozbay@users.noreply.github.com> Date: Sat, 27 Jun 2026 09:11:02 -0600 Subject: [PATCH] Handle newline character --- comfy_extras/nodes_text_overlay.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comfy_extras/nodes_text_overlay.py b/comfy_extras/nodes_text_overlay.py index 6b4b293bb..dfdf8e9f7 100644 --- a/comfy_extras/nodes_text_overlay.py +++ b/comfy_extras/nodes_text_overlay.py @@ -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: