diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-17 19:50:08 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-17 19:50:08 +0000 |
commit | ad3a7f2ab9bb459ba86bcfb9041c5dbbac7841ee (patch) | |
tree | cf8a2790bc5cb7ba5324c68dc6f8b9db910f94b4 /modules | |
parent | f6fc7916c4615c4f5cac97cab5add9b0536f6efa (diff) | |
download | stable-diffusion-webui-gfx803-ad3a7f2ab9bb459ba86bcfb9041c5dbbac7841ee.tar.gz stable-diffusion-webui-gfx803-ad3a7f2ab9bb459ba86bcfb9041c5dbbac7841ee.tar.bz2 stable-diffusion-webui-gfx803-ad3a7f2ab9bb459ba86bcfb9041c5dbbac7841ee.zip |
alternative solution to fix styles load when edited by human #9765 as suggested by akx
Diffstat (limited to 'modules')
-rw-r--r-- | modules/styles.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/styles.py b/modules/styles.py index c22769cf..34e1b5e1 100644 --- a/modules/styles.py +++ b/modules/styles.py @@ -43,7 +43,7 @@ class StyleDatabase: return
with open(self.path, "r", encoding="utf-8-sig", newline='') as file:
- reader = csv.DictReader(file)
+ reader = csv.DictReader(file, skipinitialspace=True)
for row in reader:
# Support loading old CSV format with "name, text"-columns
prompt = row["prompt"] if "prompt" in row else row["text"]
|