sd-dynamic-prompts icon indicating copy to clipboard operation
sd-dynamic-prompts copied to clipboard

[BUG] leading whitespace collapse

Open afbagwell opened this issue 2 years ago • 3 comments
trafficstars

The prompt I have in a file includes the line:

cloak{ with a hood|}

but the first option always collapses the leading whitespace to:

cloakwith a hood

I've confirmed this doesn't happen to trailing whitespace, so the prompt:

{hooded |}cloak

generates "hooded cloak" as expected

afbagwell avatar Apr 28 '23 16:04 afbagwell

Not a solution - but as a work around you could do something like cloak{1:: with a hood|}

adieyal avatar Apr 29 '23 06:04 adieyal

Because of this, I'm sure you're aware, but the bug here is actually moreso that trailing whitespace ISN'T ignored (and there's also no way to escape whitespace that should be part of the final prompt). I wanted to convert my wildcards into multiline YAML, as some of them are getting quite complex, but it became an immediate impossibility because my usecase does not allow for any extra spaces or `ns hanging around.

blooest avatar May 22 '23 23:05 blooest

I came looking to report the same issue, glad I'm not the only one who found this inconsistent.

VL4DST3R avatar Jun 07 '24 11:06 VL4DST3R