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 #1

Updated by Lars Peter Søndergaard about 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:

https://bitbucket.org/dominikweber/typo3-html_minifier/src/ca8aab65c65a4f29cee89ab95e2d7e3bc84d2ad5/Classes/Utility/Minifier.php?at=master&fileviewer=file-view-default#Minifier.php-99

Actions #2

Updated by Georg Ringer about 7 years ago

  • Subject changed from f:spaceless ViewHelper removes to many spaces to f:spaceless ViewHelper removes too many spaces
Actions #3

Updated by Georg Ringer about 7 years ago

  • Status changed from New to Rejected
Actions #4

Updated by Lars Peter Søndergaard about 7 years ago

May I ask why this was rejected?

Actions #5

Updated by Helmut Hummel over 5 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
Actions #6

Updated by Markus Klein over 5 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.

Actions #7

Updated by Markus Klein over 5 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.)
Actions #8

Updated by Markus Klein over 5 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
Actions

Also available in: Atom PDF