Issue Bug Closed

#30005stdWrap.cropHTML wrong on full-word crop shortly inside HTML-element

Stefan Neufeind 09/19/11, 02:25 updated 04/23/15, 17:45

Description

When using full-word crop (don’t within a word) and when inside a HTML-element (like description of a link) the function fails on the first word.

Testcase (for tests/typo3/sysext/cms/tslib/class.tslib_contentTest.php):

$charset . ‘ text with full-word-crop shortly inside html-element 26|…|1’ => array(
’26|…|1’, ‘Some text with a link to <a href=“mailto:email.address@example.org”>my email-address</a> and text after it’, ‘Some text with a link to <a href=“mailto:email.address@example.org”>…</a>’, $charset
),

Actual result (inside link): m…
Expected result: …

If you raise the limit to 27 (include full word “my”) or 28 (word and space after it, space gets cropped correctly) everything is fine. But when the first word itself is not full it should leave out that word completely.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.