[TYPO3-core] RFC #7984: Bug: stdWrap.crop now closes opened tags and counts chars correctly
Sebastian Böttger
sebastian.boettger at gmail.com
Thu Apr 3 23:06:12 CEST 2008
Hello Jochen,
I'm sorry it's not possible to test the bugfix.
Reason:
The patch cannot be applied
Solution:
Please follow the rules on
http://typo3.org/development/bug-fixing/diff-and-patch/
to create the patch.
-1
Sebastian Böttger
Jochen Rau schrieb:
> This is an SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references: http://bugs.typo3.org/view.php?id=7984
>
> Branches: TYPO3_4-1, TYPO3_4-2 and trunk
>
> Problems:
> 1) After stdWrap.crop has cropped text opened tags are not closed. This
> leads to unvalid HTML-code and strange FE-rendering.
> 2) stdWrap.crop counts chars of tags in text. This leads to shorter
> visible cropped text in FE.
> 3) stdWrap.crop counts chars of HTML-entities instead of the represented
> char (see 2)).
>
> Solution:
> In the proposed solution the content is splitted into an array. This
> array is parsed and each openen tag gets closed. Tags are not counted
> and HTML-entities are decoded before strlen is determined.
>
> Notes:
> In the proposed solution cropping at the last white space (to avoid
> broken words) can not "slide" over a tag.
>
> Greetings
> Jochen Rau
>
More information about the TYPO3-team-core
mailing list