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/?p=linux-gpio-pinout;a=commitdiff_plain;h=79ec1d1300d276b13c9a16ea3803e0cb11eeae69 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; } }