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 "⁠h⁠e⁠l⁠l⁠o⁠".
This commit is contained in:
google-labs-jules[bot]
2025-06-11 09:05:39 +00:00
parent 80d5a8f2a9
commit 74031df9bc
+3 -1
View File
@@ -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"