Skip to content

Commit 6991176

Browse files
committed
update the Text Padder
1 parent 692704b commit 6991176

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
@@ -5118,6 +5118,8 @@ def pad_text(self, text, length, technique, padding_character):
51185118
elif technique == 'repeat':
51195119
# repeat but don't cut off the text
51205120
padded_text = text * (length // len(text))
5121+
# fill the rest with the padding character
5122+
padded_text = padded_text.ljust(length, padding_character)
51215123
return (padded_text,)
51225124

51235125
NODE_CLASS_MAPPINGS = {

0 commit comments

Comments
 (0)