Actions
Bug #28741
closedstdWrap.cropHTML does not respect line breaks
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2011-08-04
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Crop does not work for a number of character after a line break.
TypoScript:
page = PAGE page { 10 = TEXT 10 { value ( Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo <span>ligula eget dolor. Aenean massa.</span> Cum sociis natoque penatibus et magnis dis parturient montes, nascetur. ) cropHTML = 20 | ... } }
Example 1 (correct):
cropHTML = 20 | ...
Expected:
Lorem ipsum dolor si...
Output:
Lorem ipsum dolor si...
Example 2 (not correct):
cropHTML = 66 | ...
Expected:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean...
Output:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit....
Actions