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).
Updated by Lars Peter Søndergaard over 7 years ago
Just leaving this here.
It's one of the extensions I used at some point, and never really had any issues with it.
Might be worth to look at it:
Updated by Georg Ringer over 7 years ago
- Subject changed from f:spaceless ViewHelper removes to many spaces to f:spaceless ViewHelper removes too many spaces
Updated by Lars Peter Søndergaard over 7 years ago
May I ask why this was rejected?
Updated by Helmut Hummel about 6 years ago
- Related to Bug #86862: Using <f:spaceless> in layout for rendering any fluid_styled_content element causes valid RTE content to be be destroyed. added
Updated by Markus Klein about 6 years ago
- Status changed from Rejected to Closed
Changed this to closed as duplicate of #86862. Thanks for your report we are dealing with that in the other issue now.
Updated by Markus Klein about 6 years ago
- Related to deleted (Bug #86862: Using <f:spaceless> in layout for rendering any fluid_styled_content element causes valid RTE content to be be destroyed.)
Updated by Markus Klein about 6 years ago
- Is duplicate of Bug #86862: Using <f:spaceless> in layout for rendering any fluid_styled_content element causes valid RTE content to be be destroyed. added