Fix spurious separators when appending strings

This commit is contained in:
Luis Quesada
2024-11-16 23:09:58 +01:00
parent 60ca471cf0
commit c0b235af99
+7 -3
View File
@@ -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