Bug #72050
closedencapsLines duplicates the last line if it is empty
100%
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.
Updated by Gerrit Code Review almost 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45111
Updated by Gerrit Code Review almost 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45111
Updated by Gerrit Code Review almost 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45111
Updated by Gerrit Code Review almost 8 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/45111
Updated by Alexander Stehlik almost 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset b4ed28a7d23e3b015dad14d4f8fdbfb019f9f2a4.