[TYPO3-core] RFC #7984: Bug: stdWrap.crop now closes opened tags and counts chars correctly

Jochen Rau jochen.rau at typoplanet.de
Fri Aug 28 10:30:57 CEST 2009


Hi Steffen.

Steffen Kamper wrote:
> Jochen Rau schrieb:
>>
>> And thanks for proofing that the crop function isn't sufficient to
>> crop HTML. Maybe you would like to try the new cropHTML function
>> instead ;-)
>>
> ahrg - ok. That happened because i searched for TS example. Would be
> good to post example of usage with the RFC ;)
>
> Ok, changing to
> tt_content.text.20.cropHTML = 80| ... |0
>
> it works. But
>
> tt_content.text.20.cropHTML = 180| ... |0
>
> brings the same output. So my additional remark is still valid:
> Croplength should be the visible chars, not the chars inside tag.
> So +0.5 right now :)

My test with the same input results in the expected output.

<h2>20 Jahre Mauerfall</h2>
<h3><a 
href="http://www.spiegel.de/wirtschaft/soziales/0,1518,645335,00.html" 
title="20 Jahre Mauerfall: Ost und West driften wieder auseinander">Ost 
und West driften wieder auseinander</a></h3><div 
class="spArticleImageBox spAssetAligncenter" style="width: 522px;"><p 
class="bodytext">&nbsp;</p>
<p class="bodytext">    <a 
href="http://www.spiegel.de/wirtschaft/soziales/0,1518,645335,00.html" 
title="20 Jahre Mauerfall: Ost und West driften wieder auseinander"><img 
src="http://www.spiegel.de/images/image-7729-panoV9free-sjxk.jpg" 
alt="20 Jahre Mauerfall: Ost und West driften wieder auseinander" 
title="20 Jahre Mauerfall: Ost und West driften wieder auseinander" 
align="center" border="0" height="248" width="520" /></a></p></div><p 
class="bodytext">Jahrelang nähert</p>

Cache? ;-)

Regards
Jochen

-- 
Every nit picked is a bug fixed



More information about the TYPO3-team-core mailing list