[TYPO3-hci] TYPO3 Template Code feature wish
Andreas Balzer
eMail at andreas-balzer.de
Thu Jul 6 22:12:47 CEST 2006
Christopher schrieb:
> Hi,
>
> Johannes Reichardt wrote:
>> Hi Andreas,
>>
>> Maybe typoscript could be tweaked to make use of such things as \n
>> instead? (dunno how this would be technically possible, but it would
>> be more compliant to coding standards i guess)
>>
>> - Johannes
>>> Hi!
>>> It might not be a direct feature request for usuability, but maybe
>>> indirect... It woule be nice, if something like valueln could be
>>> introduced. This valueln should do the same as value, but add a
>>> linebreak to the html sourcecode at the end of the line.
>>> So that you could write
>>> page.20 = HTML
>>> page.20.value (
>>> Bla
>>> Bla
>>> )
>>>
>>> or
>>> page.20 = HTML
>>> page.20.valueln = Bla
>>> page.30 = HTML
>>> page.30.valueln = Bla
>>>
>>> it would make the htmloutput much more "usuable" ;)
>
> Though you can't do it with TS, it's already possible to get very nicely
> formatted html from TYPO3--enable Tidy in the install tool, and pass it
> a string something like this:
>
> /path/to/tidy -i --quiet true --tidy-mark true -wrap 0 -utf8
> --break-before-br true --indent yes --indent-attributes true
> --indent-spaces 2 --tab-size 2
>
> For more info on configuring Tidy, try here:
>
> http://tidy.sourceforge.net/docs/quickref.html
>
> -Christopher
Well, i don't want to do it with Tidy, because:
1) i have to install tidy seperatly
2) Tidy destroys my layout
3) i don't want to break the line at br, but after </tr> </table> etc...
Just write \n in the line does not work.
Andreas
More information about the TYPO3-team-hci
mailing list