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

{code} and {noformat} macro do not render inserted indentation/tab characters

    XMLWordPrintable

Details

    Description

      Problem Description

      The {code} macro does not render indentation/tabs in preview mode and the {noformat} macro does not render them at all.

      Steps to Reproduce

      Copy and paste the following text into renderer, the tab should preserved.

      {code}
       	a line starting with with a tab character
      {code}
      

      Workaround

      Use {noformat} instead of {code}

      Additional Scenarios

      {noformat} tag: PASS

          Leading whitespace.
      

      {noformat} tag: FAIL

      Leading carriage return.
      

      {noformat} tag: FAIL

          Leading carriage return and leading whitespace.
      

      {code} tag: PASS

          Leading whitespace.
      

      {code} tag: FAIL

      
      Leading carriage return.
      

      {code} tag: FAIL

      
          Leading carriage return and leading whitespace.
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hhloi HengHwa Loi [Atlassian]
              Votes:
              16 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated: