Feature #70170

massive of spaces and tabs in fluid_styled_content rendered HTML

Added by Stefan Froemken over 3 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Fluid Styled Content
Target version:
Start date:
2015-09-29
Due date:
% Done:

100%

PHP Version:
5.6
Tags:
Complexity:
Sprint Focus:

Description

Hello Core-Team,

do you see a posibility to remove all these spaces and tabs out of the rendered HTML?

Happy scrolling

Stefan

Associated revisions

Revision c3107ec8 (diff)
Added by Claus Due over 3 years ago

[FEATURE] Spaceless ViewHelper

Removes redundant spaces between HTML tags while
preserving the whitespace that may be inside HTML
tags. Trims the final result before output.

Heavily inspired by Twig's corresponding node type.

<f:spaceless> <div> <div> <div>text text</div> </div> </div> </f:spaceless>
<output>
<div><div><div>text

text</div></div></div>
</output>

Change-Id: I3aa88877619dfa8e681b53c2d4f5df91bb51d478
Resolves: #70170
Releases: master
Reviewed-on: http://review.typo3.org/43747
Reviewed-by: Wouter Wolters <>
Reviewed-by: Frans Saris <>
Tested-by: Frans Saris <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>

History

#1 Updated by Benni Mack over 3 years ago

I am in favor of having a solution for that as well. This is core Fluid problem. Maybe claus knows some help on that.

#2 Updated by Wouter Wolters over 3 years ago

  • Target version changed from 7.5 to 7 LTS

#3 Updated by Claus Due over 3 years ago

Time to create f:spaceless!

#4 Updated by Gerrit Code Review over 3 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43747

#5 Updated by Gerrit Code Review over 3 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43747

#6 Updated by Gerrit Code Review over 3 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43747

#7 Updated by Claus Due over 3 years ago

  • Tracker changed from Bug to Feature

#8 Updated by Gerrit Code Review over 3 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43747

#9 Updated by Gerrit Code Review over 3 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43747

#10 Updated by Anonymous over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#11 Updated by Riccardo De Contardi over 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF