Bug #80695
closedf:spaceless ViewHelper removes too many spaces
0%
Description
TYPO3 8 Uses f:spaceless around all FSC content elements (in the fluid layout file). Unfortunately it removes to many spaces, even around those HTML elements where it shouldn't be the case (e.g. inline elements).
To point out my issue, try adding a normal textmedia content element and add two words with different inline styling, e.g. bold and italic, so that the result in the RTE source code view looks like this:
<p><strong>Hello</strong> <em>World</em></p>
When rendering to the frontend, f:spaceless
however removes the space between the closing strong
tag and opening em
tag, making them stick together in the frontend.
Instead of removing all spaces, I would assume it's better to remove all except one with the f:spaceless
ViewHelper (or at least make it an option, so it can behave like that).