cleaned up small trailing whitespace issue with ports output, put the cleanup where it belongs, in the data get function

This commit is contained in:
inxi-svn 2010-02-05 22:42:31 +00:00
parent a5b42c8fc0
commit 8ff14cda78

2
inxi
View file

@ -1754,6 +1754,7 @@ get_audio_data()
usePciBusId = aPciBusId[i]
}
# create array primary item for master array
sub( / $/, "", usePorts ) # clean off trailing whitespace
print a[j] "," useDrivers "," usePorts "," useModules "," usePciBusId
j++
}
@ -2860,6 +2861,7 @@ get_networking_data()
# create array primary item for master array
# and strip out the counter again, this handled dual cards with same chipset
sub( /~~[0-9]+$/, "", a[j] )
sub( / $/, "", usePorts ) # clean off trailing whitespace
print a[j] "," useDrivers "," usePorts "," useModules, "," usePciBusId
j++
}