From 180751691f2d3ce5aee21a159b0ed993e3c0ab65 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Wed, 21 Nov 2007 18:06:35 +0000 Subject: [PATCH] Make genlog 'unexpand -a' all the spaces into tabs, which results in smaller Changes files. p4raw-id: //depot/perl@32441 --- Porting/genlog | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Porting/genlog b/Porting/genlog index 9926b37..610e976 100755 --- a/Porting/genlog +++ b/Porting/genlog @@ -16,6 +16,7 @@ # use Text::Wrap; +use Text::Tabs; $0 =~ s|^.*/||; unless (@ARGV) { @@ -107,11 +108,11 @@ else { } } next if ((not $change) or $skip); - print "_" x 76, "\n"; - printf < 25 && ($kind eq 'integrate' || $kind eq 'branch')) || @$files > 100; - print wrap(sprintf("%12s ", $editkind{$kind}), - sprintf("%12s ", $editkind{$kind}), - "@$files\n"); + $output .= wrap(sprintf("%12s ", $editkind{$kind}), + sprintf("%12s ", $editkind{$kind}), + "@$files\n"); } } + print unexpand($output); } } -- 2.7.4