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: