Bug #26815

RTE transformation transforms LF/CR between div and hr into space

Added by Benno Kieselstein about 11 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Must have
Category:
Miscellaneous
Target version:
Start date:
2011-05-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

TYPO3 extension htmlArea RTE (rtehtmlarea) inserts unwanted linebreak between DIV and HR tag.

How to reproduce

  1. Create a new content element of type text with Rich-Text-Editor enabled.
  2. Paste the following HTML into the field bodytext using RTE source view (text mode):
    <div>Some text</div>
    <hr />
    

    RTE source (text mode) after saving will read like this:
    <div><p>Some text</p></div>
    <p>&nbsp;</p>
    <hr />
    

Version info:

  • htmlArea RTE (rtehtmlarea) version: 2.1.6
  • TYPO3 version: 4.5.2
#1

Updated by Benno Kieselstein about 11 years ago

Database entry after saving will read like this:

<div>Some text</div>

<hr  />
#2

Updated by Stanislas Rolland about 11 years ago

  • Status changed from New to Accepted
  • Assignee set to Stanislas Rolland

Appears to be a RTE transformation issue. The LF/CR between the div and hr elements gets transformed into a space in the DB. Therefore, the space is wrapped in a paragraph on the way to the RTE.

#3

Updated by Stanislas Rolland about 11 years ago

  • Subject changed from htmlArea inserts linebreak between DIV and HR tag to RTE transformation transforms LF/CR between div and hr into space
#4

Updated by Stanislas Rolland about 11 years ago

  • Target version set to 4.5.5
#5

Updated by Mr. Hudson about 11 years ago

Patch set 1 of change Iff9ce1adc94fdbcf62f3ab4ee25c6c8a3703fe19 has been pushed to the review server.
It is available at http://review.typo3.org/3861

#6

Updated by Mr. Hudson about 11 years ago

Patch set 1 of change I35640f75263324b267898696a424f6b3ed5d3709 has been pushed to the review server.
It is available at http://review.typo3.org/3863

#7

Updated by Stanislas Rolland about 11 years ago

  • Status changed from Accepted to Under Review
#8

Updated by Oliver Hader almost 11 years ago

  • Target version changed from 4.5.5 to 4.5.6
#9

Updated by Stanislas Rolland almost 11 years ago

  • Category changed from RTE (rtehtmlarea + ckeditor) to Miscellaneous
#10

Updated by Stanislas Rolland almost 11 years ago

  • Priority changed from Should have to Must have
#11

Updated by Chris topher almost 11 years ago

  • Target version changed from 4.5.6 to 4.5.8
#12

Updated by Gerrit Code Review over 10 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/3861

#13

Updated by Gerrit Code Review over 10 years ago

Patch set 2 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/3863

#14

Updated by Ernesto Baschny over 10 years ago

  • Target version changed from 4.5.8 to 4.5.12
#15

Updated by Stanislas Rolland over 10 years ago

  • Target version changed from 4.5.12 to 1525
  • PHP Version set to 5.3
#16

Updated by Stanislas Rolland over 10 years ago

  • Status changed from Under Review to Resolved

Fixed in 4.7.0.

#17

Updated by Steffen Ritter over 10 years ago

  • Target version changed from 1525 to 4.7.0-beta1
#18

Updated by Riccardo De Contardi almost 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF