Adding a Suggested Change during Pull Request review with a code of line starting with a tab gets converted into spaces

XMLWordPrintable

    • 2
    • Severity 2 - Major
    • 40

      Issue Summary

      Adding a Suggested Change during Pull Request review with a code of line starting with a tab character gets converted into spaces in Bitbucket 8.0 or older.

      This is reproducible on Data Center: (yes) 

      Steps to Reproduce

      1. Create a Pull Request with a file containing a single line starting with a tab.
      2. Start the PR review.
      3. Select the whole line.
      4. Suggest a change to this line of code
      5. Change anything in the text and save. 

      Expected Results

      The suggested change changes only the text and keeps the tab character.

      Actual Results

      The suggested change changes the tab character into 4 spaces. 

      Workaround

      Upgrade to Bitbucket 8.1.0 or newer.

        1. image-2022-12-07-13-48-02-123.png
          12 kB
          Tomasz Tokarczuk
        2. image-2022-12-07-13-55-51-694.png
          85 kB
          Tomasz Tokarczuk

            Assignee:
            Josh Wang
            Reporter:
            Tomasz Tokarczuk (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: