diff options
author | joe <joe@FreeBSD.org> | 2001-05-14 01:45:58 +0800 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2001-05-14 01:45:58 +0800 |
commit | 0053a68c84cf2f835b97200a1b1e81a07a2cd327 (patch) | |
tree | e5d6186325ab859f447afd6585a000627a97e50d /CVSROOT/logcheck | |
parent | 5d6e9244907e48adcf4943ee855b612d95aec28f (diff) | |
download | freebsd-ports-gnome-0053a68c84cf2f835b97200a1b1e81a07a2cd327.tar.gz freebsd-ports-gnome-0053a68c84cf2f835b97200a1b1e81a07a2cd327.tar.zst freebsd-ports-gnome-0053a68c84cf2f835b97200a1b1e81a07a2cd327.zip |
Remove trailing spaces in the log message correctly.
PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
Diffstat (limited to 'CVSROOT/logcheck')
-rwxr-xr-x | CVSROOT/logcheck | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CVSROOT/logcheck b/CVSROOT/logcheck index e5cbe71f4515..eaac0cb7639b 100755 --- a/CVSROOT/logcheck +++ b/CVSROOT/logcheck @@ -27,7 +27,7 @@ open(OUT, "> $tmpfile") || # Read the log file in, stripping 'CVS:' lines and removing trailing # white spaces. -my @log_in = map { s/^(.*)\s*$/$1/; $1 } grep { !/^CVS:/ } <IN>; +my @log_in = map { s/^(.*?)\s*$/$1/; $_ } grep { !/^CVS:/ } <IN>; # Remove leading, trailing and duplicate blank lines. my $i = 0; |