Open afbagwell opened 1 year ago
Not a solution - but as a work around you could do something like cloak{1:: with a hood|}
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.
I came looking to report the same issue, glad I'm not the only one who found this inconsistent.
The prompt I have in a file includes the line:
cloak{ with a hood|}
but the first option always collapses the leading whitespace to:
I've confirmed this doesn't happen to trailing whitespace, so the prompt:
{hooded |}cloak
generates "hooded cloak" as expected