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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 7.7.0, 7.6.3, 7.6.6, 7.12.3
    • Rich Text Editor

    Description

      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:

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bkek Benz Kek (Inactive)
              Votes:
              21 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated: