diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-28 07:39:57 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-28 07:39:57 +0000 |
commit | b957dcfece29c84ac0cfcd5a69475ff8684c531f (patch) | |
tree | d67f3a7dabe8d93bb1dd5769007c06c3939eda51 /modules | |
parent | f9809e6e40bc0e64f70f9d600775490611e2392d (diff) | |
download | stable-diffusion-webui-gfx803-b957dcfece29c84ac0cfcd5a69475ff8684c531f.tar.gz stable-diffusion-webui-gfx803-b957dcfece29c84ac0cfcd5a69475ff8684c531f.tar.bz2 stable-diffusion-webui-gfx803-b957dcfece29c84ac0cfcd5a69475ff8684c531f.zip |
add quoting for infotext values that have a colon in them
Diffstat (limited to 'modules')
-rw-r--r-- | modules/generation_parameters_copypaste.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/generation_parameters_copypaste.py b/modules/generation_parameters_copypaste.py index 81aef502..071bd9ea 100644 --- a/modules/generation_parameters_copypaste.py +++ b/modules/generation_parameters_copypaste.py @@ -35,7 +35,7 @@ def reset(): def quote(text):
- if ',' not in str(text) and '\n' not in str(text):
+ if ',' not in str(text) and '\n' not in str(text) and ':' not in str(text):
return text
return json.dumps(text, ensure_ascii=False)
|