Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-13591

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

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              5b83d565b5b1 Josh Wang
              ttokarczuk@atlassian.com Tomasz Tokarczuk (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: