Skip to content

Commit 77e6506

Browse files
committed
Fix for text longer than length in Text Padder
1 parent 6991176 commit 77e6506

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mikey_nodes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5113,6 +5113,8 @@ def INPUT_TYPES(cls):
51135113
CATEGORY = 'Mikey/Text'
51145114

51155115
def pad_text(self, text, length, technique, padding_character):
5116+
if len(text) >= length:
5117+
return (text,)
51165118
if technique == 'pad':
51175119
padded_text = text.ljust(length, padding_character)
51185120
elif technique == 'repeat':

0 commit comments

Comments
 (0)