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”?)
add something like [ember-hbs-minifier] (https://github.com/simplabs/ember-hbs-minifier) to automatically strip this whitespace during a production build (this addon was built to address the “performance issue” I mention above, but would likely also work for your situation)
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 ) :