Project

General

Profile

Actions

Bug #80695

closed

f:spaceless ViewHelper removes too many spaces

Added by Lars Peter Søndergaard about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2017-04-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

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).


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #86862: Using <f:spaceless> in layout for rendering any fluid_styled_content element causes valid RTE content to be be destroyed.ClosedBenjamin Kott2018-11-06

Actions
Actions

Also available in: Atom PDF