From c0b235af99023340de732b8a18ffd0156e92c09f Mon Sep 17 00:00:00 2001 From: Luis Quesada Date: Sat, 16 Nov 2024 23:09:58 +0100 Subject: [PATCH] Fix spurious separators when appending strings --- comfyui_interactive.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/comfyui_interactive.py b/comfyui_interactive.py index 1dcae93..b3a0eaf 100755 --- a/comfyui_interactive.py +++ b/comfyui_interactive.py @@ -323,11 +323,15 @@ class InteractiveStringAppend: else: # "enter" use = '\n' - if input1 is None and input2 is None: + if not input1: + input1 = "" + if not input2: + input2 = "" + if not input1 and not input2: output = "" - elif input1 is None: + elif not input1: output = input2 - elif input2 is None: + elif not input2: output = input1 else: output = input1 + use + input2