[TYPO3-dev] Fluid TextMedia Whitespaces/New Line

Bernd Wilke t3n at pi-phi.de
Tue Jan 12 09:00:14 CET 2016


Am 12.01.2016 um 04:47 schrieb Dim San:
> Hello community,
> at developing with 7.6 and Fluid Text Media I noticed the following:
> The source code has a lot of breaks/Whitespaces/New Lines.
> See the screenshot.
> Is the reason many Fluid templates? PHP-Code?

that is a result of fluid.
fluid does not compress any whitespace and using viewhelper with 
formatting and indenting results in a lot of whitespace.

either you use a html-formatter (tidy, prettify, pretty-print, ...) or 
compress your fluid to unreadability.

> I have found nothing at Google.
>
> I tested with:
> <f:format.html  parseFuncTSPath="">{}</f:format.html>
> and:
> <f:format.raw>{}</f:format.html>

those VH do no formatting or compression in whitespace but care about 
special characters and special tags like <link>

bernd

> Thanks

not very visible:
:(
store your images outsite and insert links

> begin 644 Screen1.png
> MB5!.1PT*&@H````-24A$4@``!.````+="`(````*[8MN`````7-21T(`KLX<
> MZ0````1G04U!``"QCPO\804````)<$A9<P``#L,```[#`<=OJ&0``&70241!
[...]
> M``$"!`@0($"```$""Q(X+:#N]]DCD^H/4<H?YJN#NJ"KQE0)$"!`@``!`@0(
> M$"!P!0&?@WH%5*<D0(```0($"!`@0(``@=,%!-33S?P&`0($"!`@0(```0($
> :"%Q!X/\#7W&&TS/B1?0`````245.1*Y"8((`
> `
> end
> begin 644 Screen2.png
> MB5!.1PT*&@H````-24A$4@``!/X```.7"`(````[/AB+`````7-21T(`KLX<
> MZ0````1G04U!``"QCPO\804````)<$A9<P``#L,```[#`<=OJ&0``'L at 241!
> M5'A>[=W/KN/&N2]L7T.&N9\SWS-?@">>Y!XT<T9R``,!#D#`H]X^$VX8\<2!
[...]
> MZAO*PO/)SB8\;S#PFB1`@``!`@0($"!`@$`^`@M'WR'8-K7=Z[6^XYG/H^_]
> M5?7-YY[34P($"!`@0(```0($"*PLL'#TG3W2^6JW?N+SK:*OQURM/.Z:(T"`
> E``$"!`@0($"`0$8"'Q%]_W_.6*D4,E^9)P````!)14Y$KD)@@@``
> `
> end
>




More information about the TYPO3-dev mailing list