From 8944e116c42ee2c9562b9cc8dfd5ea67fe8b9e23 Mon Sep 17 00:00:00 2001 From: nkchocoai Date: Sat, 27 Jan 2024 16:26:04 +0900 Subject: [PATCH] Join without empty strings --- py/node/format.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/py/node/format.py b/py/node/format.py index d476148..5ca1105 100644 --- a/py/node/format.py +++ b/py/node/format.py @@ -44,5 +44,6 @@ class PromptUtilitiesJoinStringList(BaseNode): FUNCTION = "join" def join(self, separator, **kwargs): - result = separator.join(kwargs.values()) + # join without empty strings. + result = separator.join([s for s in kwargs.values() if s]) return (result,) \ No newline at end of file