From: Ian Jackson Date: Sat, 11 Aug 2018 16:57:13 +0000 (+0100) Subject: Dgit.pm: failmsg: Remove all double newlines, not just the first X-Git-Tag: archive/debian/6.7~97 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=d471fbd414ac2d25ae0f6b7693c5f15272cd80ee;hp=0c08383390e6759b14a8a825c736abd5ec555e0a Dgit.pm: failmsg: Remove all double newlines, not just the first I don't think this makes any difference with the current error messages. Signed-off-by: Ian Jackson --- diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index 34e40a3b..f68b7c91 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -284,7 +284,7 @@ sub _us () { sub failmsg { my $s = "error: @_\n"; - $s =~ s/\n\n$/\n/; + $s =~ s/\n\n$/\n/g; my $prefix = _us().": "; $s =~ s/^/$prefix/gm; return "\n".$s;