GNU bug report logs - #39910
Add color to "No newline at end of file"

Previous Next

Package: diffutils;

Reported by: Cameron Steffen <cam.steffen94 <at> gmail.com>

Date: Wed, 4 Mar 2020 17:20:02 UTC

Severity: normal

To reply to this bug, email your comments to 39910 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-diffutils <at> gnu.org:
bug#39910; Package diffutils. (Wed, 04 Mar 2020 17:20:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Cameron Steffen <cam.steffen94 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Wed, 04 Mar 2020 17:20:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Cameron Steffen <cam.steffen94 <at> gmail.com>
To: bug-diffutils <at> gnu.org
Subject: Add color to "No newline at end of file"
Date: Wed, 4 Mar 2020 11:07:33 -0600
Hello,

I think it would be an improvement to add color to the line "\ No
newline at end of file" to represent when a newline character at the
end is added or removed.

For example,

  1. diff --color <(printf "foo") <(printf "bar")
  2. diff --color <(printf "foo") <(printf "bar\n")
  3. diff --color <(printf "foo\n") <(printf "bar")

Expected behavior:

  1. "No newline..." is not colored, no change
  2. "No newline..." from FILE1 is red
  3. "No newline..." from FILE2 is green

Thanks,
Cameron Steffen




This bug report was last modified 4 years and 50 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.