projects
/
x300-pci
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d51eef0
)
added two spaces between tables for better readability
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 21 Jun 2016 13:46:35 +0000
(15:46 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 21 Jun 2016 13:46:48 +0000
(15:46 +0200)
gpio.pl
patch
|
blob
|
history
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);