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

Source view does not properly display files with mixed line endings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • 3.4.0
    • None
    • None

      I have some C files with mixed line endings. They display badly in Stash's source view.

      Here is an example repository I posted on Bitbucket. They display fine there:

      https://bitbucket.org/jason_s/line-endings-test/src/1be669fecf3d5c4959124cc50a1d80be3f39dfb8/test1.txt?at=master
      https://bitbucket.org/jason_s/line-endings-test/src/1be669fecf3d5c4959124cc50a1d80be3f39dfb8/test2.txt?at=master

      but display badly in Stash. This renders line number functions like Blame ineffective.

      (Yeah, I know, we shouldn't be using mixed line endings in the first place, but Stash should handle this more robustly.)

        1. test1-bitbucket.png
          test1-bitbucket.png
          20 kB
        2. test1-stash.png
          test1-stash.png
          24 kB
        3. test2-bitbucket.png
          test2-bitbucket.png
          22 kB
        4. test2-stash.png
          test2-stash.png
          28 kB

              Unassigned Unassigned
              10a9d3476bdf Jason Sachs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: