You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that when you have a node with content that has spaces, these spaces will get removed from the edges when parsing.
Yep, that's intentional (but can be reverted, of course). I did it because i don't think that with, e.g.:
<node>
Hello!
</node>
..one would expected the content to be "\n Hello!\n". At the same time i recognize that this practically forbids you from having multiline content, but that's an intentional trade-off i made in my mind when i've written it. Personally, my rule of thumb is "single-line data => make it an attribute; multi-line data => make it a CDATA", but i'm always open to feedback and we can change that (under an option).
Reading the comment, it seems like a workaround for a Godot xml parser problem?
In this case, it's more of an "unwanted" thing than an "issue" (the _cleanup_double_blankets() function below does exist to workaround an issue, but i assume that's out of your concern?).
It's probably better to leave trimming to the user, but i'm afraid of this being too breaking
The text was updated successfully, but these errors were encountered: