From 1fcb48347d2a738dad9562d4d6f07fb633a3a1b9 Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Sat, 10 Sep 2022 00:51:07 +0300 Subject: [PATCH] prevent styles from adding an extra comma --- modules/styles.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/styles.py b/modules/styles.py index 58fb7d751..85b78fad9 100644 --- a/modules/styles.py +++ b/modules/styles.py @@ -19,6 +19,9 @@ def load_styles(filename): def apply_style_text(style_text, prompt): + if style_text == "": + return prompt + return prompt + ", " + style_text if prompt else style_text