prevent styles from adding an extra comma
This commit is contained in:
parent
8e13f54a1d
commit
1fcb48347d
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,9 @@ def load_styles(filename):
|
||||||
|
|
||||||
|
|
||||||
def apply_style_text(style_text, prompt):
|
def apply_style_text(style_text, prompt):
|
||||||
|
if style_text == "":
|
||||||
|
return prompt
|
||||||
|
|
||||||
return prompt + ", " + style_text if prompt else style_text
|
return prompt + ", " + style_text if prompt else style_text
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue