diff options
author | joe <joe@FreeBSD.org> | 2001-11-15 19:49:21 +0800 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2001-11-15 19:49:21 +0800 |
commit | 502932bd661271281e3245dfd43cbef6dc4fa105 (patch) | |
tree | bed28e0886dc4114b1ee4b409826070b54d21dd8 /CVSROOT | |
parent | 072a1b871ec92bd7ca5d0f8af7dc3c63e65f9d59 (diff) | |
download | freebsd-ports-gnome-502932bd661271281e3245dfd43cbef6dc4fa105.tar.gz freebsd-ports-gnome-502932bd661271281e3245dfd43cbef6dc4fa105.tar.zst freebsd-ports-gnome-502932bd661271281e3245dfd43cbef6dc4fa105.zip |
Expand tabs into spaces in the email and log file so that everything
stays correctly lined up after indentation.
Requested by: Dan Langille <dan@langille.org>
Submitted by: tobez
Diffstat (limited to 'CVSROOT')
-rwxr-xr-x | CVSROOT/log_accum.pl | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/CVSROOT/log_accum.pl b/CVSROOT/log_accum.pl index cef63548d438..88260566488a 100755 --- a/CVSROOT/log_accum.pl +++ b/CVSROOT/log_accum.pl @@ -21,6 +21,8 @@ require 5.003; # might work with older perl5 use strict; +use Text::Tabs; + use lib $ENV{CVSROOT}; use CVSROOT::cfg; @@ -690,16 +692,18 @@ while (<STDIN>) { &append_line($TAGS_FILE, $tag); # -# Strip leading and trailing blank lines from the log message. Also -# compress multiple blank lines in the body of the message down to a +# Strip leading and trailing blank lines from the log message. +# Compress multiple blank lines in the body of the message down to a # single blank line. +# Convert tabs to spaces, so that when we indent the email message and +# log file everything still lines up. # (Note, this only does the mail and changes log, not the rcs log). # my $log_message = join "\n", @log_lines; $log_message =~ s/\n{3,}/\n\n/g; $log_message =~ s/^\n+//; $log_message =~ s/\n+$//; -@log_lines = split /\n/, $log_message; +@log_lines = expand(split /\n/, $log_message); # |