Avoid space sanitizing #214
Replies: 2 comments
-
Hi @entusiastaIA, I have added the new setting Please note that disabling the space sanitization may cause compatibility issues with other templates or some shortcodes. |
Beta Was this translation helpful? Give feedback.
-
Yes! It's working! First problem/bug I notice now though is with [choose _weighted]: Previously I used an space to fix that behaivour and get the array "3| |1|from the front". Which seems that after sanitizing got really empty. Now however it ends producing an extra space. |
Beta Was this translation helpful? Give feedback.
-
This is something that's been bothering me since countless versions ago. For a code like this:
"[if _not angle="back"] and [get faceused][/if];"
Is there anyway to avoid that first space before the "and" to get sanitized and removed. Honestly I don't understand why is it done that way, I write spaces where I need them. Actually this is the workaround code I need to use to fix that which is much less elegant IMO...
"[if angle="back"];[/if] [if _not angle="back"]and [get faceused];[/if]" now the needed space is in between those ifs so that it is parsed...
I have tried with the config file but either I'm not understanding the sanitizing options provided or I cannot fix it.
(I know another option would be adding the space BEFORE the [IF]... the problem with that is that then in case of angle="back" you end with "word ; word" and I know that from the SD perspective it is the same as "word; word" but I refuse to live into such a world of anarchy, chaos and slaughter. I love clean prompts. More than clean code ^^).
PS: I don't use [else] because of the old "why else is true?" that used to happen :)
Beta Was this translation helpful? Give feedback.
All reactions