added white space cleanup

This commit is contained in:
inxi-svn 2011-05-29 03:42:23 +00:00
parent a28155b16e
commit a988de3ba0

1
inxi
View file

@ -3271,6 +3271,7 @@ get_graphics_glx_data()
/opengl version/ {
# fglrx started appearing with this extra string, does not appear to communicate anything of value
sub(/Compatibility Profile Context/, "", $2 )
gsub(/ [ \t]+/, " ", $2) # get rid of the created white spaces
gsub(/^ +| +$/, "", $2)
$2 && b[$2]
}