Okay, I think the problem is that there is styled text somewhere in the snippet (like bold text or a link). This results in the entire snippet being processed as HTML, and HTML can have issues in consecutive spaces.
The reason why it works when you copy from the formtext is because its completely plaintext.
If you don't need the HTML mode:
- select all contents in your snippet (press Ctrl+A or drag with mouse)
- clear all formatting by pressing the Tx button in the snippet editor toolbar.
- try the snippet again in your destination
Let me know if it works for you. Note if your snippet imports other snippets and those snippets have formatting, you'd need to clear their formats too.
If you need the HTML mode:
You can replace the regular space with a non-breaking space, like in this snippet:
{cleantext="1. Main item
2. Sub item
3. Sub sub item
Last line
"}{key: ctrl-a; trim=yes}
{=replace(cleantext, " ", " "); trim=yes}
---------------------------^ this space is a nbsp
If the forum messes up the nbsp, you can manually copy it from here: U+00A0 NO-BREAK SPACE - Unicode Explorer
Let me know if it works for you.
Side note: in the future, if you get stuck on complex issues like these, please do not hesitate to eagerly email support@blaze.today so we can work on them in parallel (maybe on a call as well).