[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-diffutils] [PATCH] maint: don't emit an extra newline in a diagnost
From: |
Jim Meyering |
Subject: |
[bug-diffutils] [PATCH] maint: don't emit an extra newline in a diagnostic |
Date: |
Tue, 25 May 2010 18:12:24 +0200 |
FYI,
Found with these:
git grep -A1 'error *(.*,$' | grep -C1 '\\n"[,)]'
git grep 'error *(.*;$' | grep '\\n"[,)]'
>From 816b2dcb00a9a1df3603664696fe57dd603bf275 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Tue, 25 May 2010 17:53:09 +0200
Subject: [PATCH] maint: don't emit an extra newline in a diagnostic
* src/analyze.c (diff_2_files): Remove a stray newline in a diagnostic.
---
src/analyze.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/analyze.c b/src/analyze.c
index e797248..743aa1a 100644
--- a/src/analyze.c
+++ b/src/analyze.c
@@ -708,7 +708,7 @@ diff_2_files (struct comparison *cmp)
for (f = 0; f < 2; ++f)
if (cmp->file[f].missing_newline)
{
- error (0, 0, "%s: %s\n",
+ error (0, 0, "%s: %s",
file_label[f] ? file_label[f] : cmp->file[f].name,
_("No newline at end of file"));
changes = 2;
--
1.7.1.342.g1c280
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-diffutils] [PATCH] maint: don't emit an extra newline in a diagnostic,
Jim Meyering <=