From 74031df9bc8a88299cb32f382eab1c816faf0f3e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 09:05:39 +0000 Subject: [PATCH] feat: Update padding character to Word Joiner (U+2060) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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⁠". --- gemini_nodes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gemini_nodes.py b/gemini_nodes.py index 4919299..ae45839 100644 --- a/gemini_nodes.py +++ b/gemini_nodes.py @@ -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"