Wikitext using 'noformat' notation an issue comment loses the spaces before the first line

XMLWordPrintable

    • 1
    • Minor
    • Hide

      Initial investigation suggests this is a bug due to trimming leading spaces when wikitext is converted to Atlassian Document Format (ADF).

      Show
      Initial investigation suggests this is a bug due to trimming leading spaces when wikitext is converted to Atlassian Document Format (ADF).

      Issue Summary

      Adding a comment with spaces at the beginning of the first line using the noformat notation, displays with the spacing trimmed. This seems reproducible only with a status transition with a screen on it.

      Steps to Reproduce

      1. Add a Screen during a Status transition. Trigger that transition and add a comment in the new screen with noformat notation similar to:
        {noformat}
            Line1
            Line2
            Line3
        {noformat} 
        
      1. Use the comment render check button and validate that the spaces of all lines are considered:

             

      1. After adding the comment the spaces from the first line do not display:

      Expected Results

      Expect the first line to still contain spacing, similar to spacing in front of any subsequent line.

      Actual Results

      The first line has its spacing trimmed.

      Workaround

      If you re-add the spaces after the Status transition, the spaces should be retained.

            Assignee:
            Unassigned
            Reporter:
            Cece Zhu
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: