From: Dobrica Pavlinusic Date: Wed, 1 Nov 2017 12:16:29 +0000 (+0100) Subject: fill-in single row header X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;ds=sidebyside;h=79ec1d1300d276b13c9a16ea3803e0cb11eeae69;hp=454b76f8b2a0bf8dab607d1c789b77deccf50d3c;p=linux-gpio-pinout fill-in single row header --- diff --git a/gpio.pl b/gpio.pl index bdb01cb..96b2e9d 100755 --- a/gpio.pl +++ b/gpio.pl @@ -84,6 +84,7 @@ foreach my $line ( @line_parts ) { if ( $#$line == 0 ) { print $line->[0], "\n"; } else { + push @$line, '' while ($#$line < 3); # fill-in single row header printf $fmt, @$line; } }