added two spaces between tables for better readability
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 21 Jun 2016 13:46:35 +0000 (15:46 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 21 Jun 2016 13:46:48 +0000 (15:46 +0200)
gpio.pl

diff --git a/gpio.pl b/gpio.pl
index 5c1c82e..6c653d0 100755 (executable)
--- a/gpio.pl
+++ b/gpio.pl
@@ -39,8 +39,10 @@ foreach (@gpio) {
        s/([ \d]{2})(...GPIO.)../$1$2$1/;
        s/(GPIO.)..(...)(\s*\d+)/$1$3$2$3/;
 
-       my $line = substr($_,0,29) . substr($_,39);
-       $line .= shift @pcf || '';
+       my $line = substr($_,0,29) . '  ' . substr($_,39);
+       if ( my $add = shift @pcf ) {
+               $line .= '  ' . $add;
+       }
 
        chomp $line;
        my @l = split(/\|/, $line);