Skip to content

Commit

Permalink
Merge pull request #41 from DrJKL/patch-1
Browse files Browse the repository at this point in the history
Handle spaces in STYLE function
  • Loading branch information
asagi4 authored May 2, 2024
2 parents 76dbe71 + 168aaf0 commit fc34ea5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prompt_control/node_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ def get_style(text, default_style="comfy", default_normalization="none"):
if not styles:
return default_style, default_normalization, text
style, normalization = styles[0]
style = style.strip()
normalization = normalization.strip()
if style not in AVAILABLE_STYLES:
log.warning("Unrecognized prompt style: %s. Using %s", style, default_style)
style = default_style
Expand Down

0 comments on commit fc34ea5

Please sign in to comment.