Actions
Bug #72050
closedencapsLines duplicates the last line if it is empty
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2015-12-03
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
Testcase: Create a content element with a single empty <p> </p>
in the RTE.
Result: Two paragraphs are renderd in the Frontend (<p class="bodytext"> </p><p class="bodytext"> </p>
)
Expected result: Only one paragraph should be rendered. (<p class="bodytext"> </p>
)
Cause: In the encapsLines functionality the string is splitted by \n
. When you have only one \n
without any content before or after it, explode()
will get you two empty items that are treated as lines.
Actions