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

XMLWordPrintable

    • 3.13
    • 5
    • Severity 3 - Minor
    • 0

      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.
      

              Assignee:
              Unassigned
              Reporter:
              HengHwa Loi [Atlassian]
              Votes:
              16 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: