The "show whitespace characters" of Diff view shows a new line symbol when no new line is present

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: None
    • 0
    • 2

      Description
      When using Diff view for a pull request, a newline symbol is displayed as being present in file version when it is not in the file. This new line symbol is faintly colored gray which makes it difficult to view it. 

      Suggestions

      1. There should be no new line at the end of a file version, where the file has no such new line.
      2. The color of the white space symbol should be more visible for easy view. A more visible color should be used in the place of the light grey color.

      Steps to reproduce

      1. Create a pull request where a text file is added where that file's last line does not end with a newline.
        i.e. # echo -n "hello" > hello.txt
      2. Update the pull request by  adding a newline of text, to the end of the file.

      Expected Result
      There should be no new line at the end of a file version of the Diff view with show whitspace differences active

      Actual Result
      With "show whitspace differences" active, you will see that both the original and the updated version show a newline.

      The image below show the new line added.

        1. image.png
          14 kB
          VICTOR-OSEGHALE

            Assignee:
            Unassigned
            Reporter:
            VICTOR-OSEGHALE (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: