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

        Eduardo Fernandes (Inactive) created issue -
        Eduardo Fernandes (Inactive) made changes -
        Field Original Value New Value
        Status Open [ 1 ] Confirmed [ 10037 ]
        Eduardo Fernandes (Inactive) made changes -
        Link This issue relates to EZP-17014 [ EZP-17014 ]
        Eduardo Fernandes (Inactive) made changes -
        Description If you insert empty lines at the beginning of a text block, each time you edit and publish (or store as a draft) the document one of the beginning empty lines will be removed.

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

        h3. Steps to Reproduce
        # Open the backend
        # Create a new class named TestClass with the following attributes:
        #* **Title**: Text Line
        #* **Text**: Text Block
        # 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.
        {code}



        Line One

        Line Two
        {code}
        # Edit the TestClass object and publish it or save is as a draft.
        # Edit the TestClass object again, and confirm the first empty line is gone.
        # 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.
        If you insert empty lines at the beginning of a text block, each time you edit and publish (or store as a draft) the document one of the beginning empty lines will be removed.

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

        h3. Steps to Reproduce
        # Open the backend
        # Create a new class named TestClass with the following attributes:
        #* **Title**: Text Line
        #* **Text**: Text Block
        # 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.
        {code}



        Line One

        Line Two
        {code}
        # Edit the TestClass object and publish it or save is as a draft.
        # Edit the TestClass object again, and confirm the first empty line is gone.
        # 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|https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Datatypes/Text-block], not eZXML Block.^
        Paulo Lopes (Inactive) made changes -
        Status Confirmed [ 10037 ] InputQ [ 10001 ]
        Eduardo Fernandes (Inactive) made changes -
        Description If you insert empty lines at the beginning of a text block, each time you edit and publish (or store as a draft) the document one of the beginning empty lines will be removed.

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

        h3. Steps to Reproduce
        # Open the backend
        # Create a new class named TestClass with the following attributes:
        #* **Title**: Text Line
        #* **Text**: Text Block
        # 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.
        {code}



        Line One

        Line Two
        {code}
        # Edit the TestClass object and publish it or save is as a draft.
        # Edit the TestClass object again, and confirm the first empty line is gone.
        # 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|https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Datatypes/Text-block], not eZXML Block.^
        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.

        h3. Steps to Reproduce
        # Open the backend
        # Create a new class named TestClass with the following attributes:
        #* **Title**: Text Line
        #* **Text**: Text Block
        # 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.
        {code}



        Line One

        Line Two
        {code}
        # Edit the TestClass object and publish it or save is as a draft.
        # Edit the TestClass object again, and confirm the first empty line is gone.
        # 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|https://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Datatypes/Text-block], not eZXML Block.^
        Damien Pobel (Inactive) made changes -
        Status InputQ [ 10001 ] Development [ 3 ]
        Assignee Damien Pobel [ damien.pobel@ez.no ]
        Damien Pobel (Inactive) made changes -
        Summary Text Block removes a single empty new lines at the beginning of the text in each edit Empty lines at the beginning/end of a Text block are lost
        Damien Pobel (Inactive) made changes -
        Summary Empty lines at the beginning/end of a Text block are lost One empty line at the beginning/end of a Text block are lost
        Damien Pobel (Inactive) made changes -
        Summary One empty line at the beginning/end of a Text block are lost An empty line at the beginning/end of a Text block will be lost
        Damien Pobel (Inactive) made changes -
        Summary An empty line at the beginning/end of a Text block will be lost An empty line at the beginning of a Text block will be lost
        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
        Damien Pobel (Inactive) made changes -
        Status Development [ 3 ] Development review [ 10006 ]
        Damien Pobel (Inactive) made changes -
        Link This issue relates to EZP-17014 [ EZP-17014 ]
        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
        Damien Pobel (Inactive) made changes -
        Status Development review [ 10006 ] Development Review done [ 10028 ]
        Damien Pobel (Inactive) made changes -
        Status Development Review done [ 10028 ] Documentation done [ 10011 ]
        Fix Version/s 5.1 Maintenance [ 12301 ]
        Fix Version/s 5.2 Maintenance [ 12782 ]
        Fix Version/s 5.3.3 [ 13484 ]
        Fix Version/s 5.4-dev [ 13485 ]
        Damien Pobel (Inactive) made changes -
        Component/s Administration Interface [ 10785 ]
        Component/s PlatformUI [ 10301 ]
        Paulo Nunes (Inactive) made changes -
        Status Documentation done [ 10011 ] QA [ 10008 ]
        Assignee Damien Pobel [ damien.pobel@ez.no ] Paulo Nunes [ paulo.nunes@ez.no ]
        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
        Paulo Nunes (Inactive) made changes -
        Assignee Paulo Nunes [ paulo.nunes@ez.no ]
        Status QA [ 10008 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        André Rømcke made changes -
        Workflow eZ Engineering Scrumban Workflow [ 64027 ] EZ* Development Workflow [ 85246 ]
        Alex Schuster made changes -
        Workflow EZ* Development Workflow [ 85246 ] EZEE Development Workflow [ 124044 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Confirmed Confirmed
        2m 12s 1 eduardo.fernandes@ez.no 25/Jul/14 11:58 AM
        Confirmed Confirmed InputQ InputQ
        32m 53s 1 Paulo Lopes (Inactive) 25/Jul/14 12:31 PM
        InputQ InputQ Development Development
        3d 5h 55m 1 damien.pobel@ez.no 28/Jul/14 6:26 PM
        Development Development Development Review Development Review
        14h 8m 1 damien.pobel@ez.no 29/Jul/14 8:35 AM
        Development Review Development Review Development Review done Development Review done
        3h 27m 1 damien.pobel@ez.no 29/Jul/14 12:02 PM
        Development Review done Development Review done Documentation Review done Documentation Review done
        29s 1 damien.pobel@ez.no 29/Jul/14 12:02 PM
        Documentation Review done Documentation Review done QA QA
        49m 27s 1 Paulo Nunes 29/Jul/14 12:52 PM
        QA QA Closed Closed
        21h 8m 1 Paulo Nunes 30/Jul/14 10:00 AM

          People

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

            Dates

            • Created:
              Updated:
              Resolved: