From 2852fd6a76cb0addb64e789225356bd27d2ac6fd Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Fri, 1 Nov 2024 12:40:48 +0900 Subject: [PATCH] remove strip --- modules/ui_extra_networks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py index 4e189b223..ef3998c48 100644 --- a/modules/ui_extra_networks.py +++ b/modules/ui_extra_networks.py @@ -453,8 +453,8 @@ class ExtraNetworksPage: "data-name": f'"{data_name}"', "data-path": f'"{data_path}"', "data-hash": item.get("shorthash", None), - "data-prompt": item.get("prompt", "").strip(), - "data-neg-prompt": item.get("negative_prompt", "").strip(), + "data-prompt": item.get("prompt", ""), + "data-neg-prompt": item.get("negative_prompt", ""), "data-allow-neg": self.allow_negative_prompt, } @@ -714,8 +714,8 @@ class ExtraNetworksPage: "data-depth": node.depth, "data-path": f'"{data_path}"', "data-hash": node.item.get("shorthash", None), - "data-prompt": node.item.get("prompt", "").strip(), - "data-neg-prompt": node.item.get("negative_prompt", "").strip(), + "data-prompt": node.item.get("prompt", ""), + "data-neg-prompt": node.item.get("negative_prompt", ""), "data-allow-neg": self.allow_negative_prompt, } # Special case for checkpoints since they need to switch model on click.