Can you elaborate on why you are looking to remove the whitespace? I think visually the whitespace is helpful so I’m assuming there is some special case where the whitespace actually matters more (e.g. invoking components inside a <pre>/<code>).
We use it to build comma separated lists with CSS, where we add a comma behind each element. Without whitespace control, you then end up with e.g. First , second , third insted of First, second, third.
It’s not the most important thing in the world, and there are for sure other ways to achieve this, but we’ve been using it quite successfully for some time now
Gotcha! Thank you for explaining that! I was mostly trying to determine if this was more of a “feature request” or a “performance issue” type of thing.
RE: the performance issue side of things (which are mostly focused on template bloat introduced by extraneous whitespace) we have ideas for slimming the template size down considerably.
RE: your specific use case, I think the only options you have at the moment would be:
don’t rely on CSS for building comma separated lists, instead have your markup more closely match what is rendered (likely doesn’t sound appealing, but might be “okish”?)
setup your templates to avoid the extraneous whitespace, I could imagine something like this working (though I’m not exactly sold that it looks decent ) :
I wonder, is it on purpose that you can remove whitespace with comments? If so, I guess that is a decent solution for this problem - unless it is kind-of unintended and might go away at some point?