Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-68160

Enter a new line in a table cell under visual mode cause malformed table upon saving

      Summary

      Enter a new line in a table cell under visual mode cause malformed table upon saving. This is happening to Description or Comment.

      Steps to Reproduce

      1. Create a new issue in any project.
      2. Insert the following table in Text mode to prepopulate the table in Description or Comment.
         
        ||Heading 1||Heading 2||Heading 1||Heading 2||Heading 1||Heading 2||Heading 1||Heading 2||
        |Col A1|Col A2|Col A1|Col A2|Col A1|Col A2|Col A1|Col A2|
        |Col A1|Col A2|Col A1|Col A2|Col A1|Col A2|Col A1|Col A2|
        |Col A1|Col A2|Col A1|Col A2|Col A1|Col A2|Col A1|Col A2|
        |Col A1|Col A2|Col A1|Col A2|Col A1|Col A2|Col A1|Col A2|
        |Col A1|Col A2|Col A1|Col A2|Col A1|Col A2|Col A1|Col A2|
        

      3. Save it.
      4. Edit the Description or Comment.
      5. Switch to VIsual mode.
      6. Go to any of the table cell and press ENTER or insert some new lines.
      7. Save it again.

      Expected Results

      Actual Results

      It is displayed as follows:

      In the text mode:

       

      Notes

      • This could be caused by the new line inserted causing the renderer to think that these are new rows.
      • The new line in Wiki Markup renderer is indicated as follows with a blank space (" ") right after the two back-slash ("\").
        \\ 
      • This could be happening to all fields that have been using the Wiki Markup as well.

      Workaround

      There is a workaround where you can edit the table in Text mode to insert the new line as follows:

          Form Name

            [JRASERVER-68160] Enter a new line in a table cell under visual mode cause malformed table upon saving

            Chul Kim added a comment - - edited

            Interestingly this has impacts on the add-on side. For example, a popular Xray add-on (from Xpand) using the table for copying its test steps in order to create a defect for the failed test cases. Very annoying (sometimes impossible) to fix all cells manually in the text mode. Please fix this. 

            Chul Kim added a comment - - edited Interestingly this has impacts on the add-on side. For example, a popular Xray add-on (from Xpand) using the table for copying its test steps in order to create a defect for the failed test cases. Very annoying (sometimes impossible) to fix all cells manually in the text mode. Please fix this. 

            This is an unfortunate show-stopper as the table would have helped a great deal in encouraging users to provide sculpted details to assist in investigation and prompt resolution of issues. A set of our request types need to be put on hold since this is broken. Hope the issue will be resolved soonest - thanks in advance!

            Jessie Chia added a comment - This is an unfortunate show-stopper as the table would have helped a great deal in encouraging users to provide sculpted details to assist in investigation and prompt resolution of issues. A set of our request types need to be put on hold since this is broken. Hope the issue will be resolved soonest - thanks in advance!

              Unassigned Unassigned
              bkek Benz Kek (Inactive)
              Affected customers:
              23 This affects my team
              Watchers:
              21 Start watching this issue

                Created:
                Updated: