Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23195

An empty line at the beginning of a Text block will be lost

    Details

      Description

      If you insert empty lines at the beginning of a text block, each time you edit and publish (or store as a draft) one of the beginning empty lines will be removed.

      This might be related to EZP-17014, and happens in Internet Explore, Chrome and Firefox.

      Steps to Reproduce

      1. Open the backend
      2. Create a new class named TestClass with the following attributes:
        • *Title*: Text Line
        • *Text*: Text Block
      3. Create a new TestClass object and insert the following text in the text attribute (there are three empty lines at the beginning of the text) and publish it.

         
         
         
        Line One
         
        Line Two
        

      4. Edit the TestClass object and publish it or save is as a draft.
      5. Edit the TestClass object again, and confirm the first empty line is gone.
      6. Save and edit TestClass object again two more times, and confirm all the empty lines at the begging are gone. The empty line between "Line One" and "Line Two" should remain untouched.

      Note: Please notice this issue is related to Text Block, not eZXML Block.

        Activity

        Show
        Damien Pobel (Inactive) added a comment - - edited PRs: Legacy https://github.com/ezsystems/ezpublish-legacy/pull/1041 PlatformUI https://github.com/ezsystems/PlatformUIBundle/pull/102
        Show
        Damien Pobel (Inactive) added a comment - Fixed in ezpublish-legacy: master: http://github.com/ezsystems/ezpublish-legacy/commit/6e0f48fc66f655ad4992970063cb9902fcdfb94e Fixed in PlatformUIBundle: master: http://github.com/ezsystems/PlatformUIBundle/commit/291e2a53eb898d081dd1e4ab23b1326628235b1c
        Hide
        Paulo Nunes (Inactive) added a comment -

        QA Approved
        Tested in 5.1, 5.2, 5.3 and master

        Show
        Paulo Nunes (Inactive) added a comment - QA Approved Tested in 5.1, 5.2, 5.3 and master

          People

          • Assignee:
            Unassigned
            Reporter:
            Eduardo Fernandes (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: