feat: Update padding character to Word Joiner (U+2060)
This commit updates the padding character in the `bypass_mode` feature of the `SSL_GeminiTextPrompt` node. The padding now uses the Word Joiner character (U+2060) instead of underscores. The `_pad_text_with_underscores` method has been modified to implement this change. Text processed by this function will now have each character separated by U+2060, and the entire string will be prepended and appended with U+2060. For example, "hello" becomes "hello".
This commit is contained in:
+3
-1
@@ -94,7 +94,9 @@ class SSL_GeminiTextPrompt(ComfyNodeABC):
|
||||
def _pad_text_with_underscores(self, text: str) -> str:
|
||||
if not text:
|
||||
return ""
|
||||
return "_" + "_".join(list(text)) + "_"
|
||||
# Use Word Joiner (U+2060) instead of underscore
|
||||
padding_char = ""
|
||||
return padding_char + padding_char.join(list(text)) + padding_char
|
||||
|
||||
def save_binary_file(self, data, mime_type):
|
||||
ext = ".bin"
|
||||
|
||||
Reference in New Issue
Block a user