small code adjustment

This commit is contained in:
inxi-svn 2013-05-20 03:09:45 +00:00
parent fd376c3009
commit 4c8d81372a

2
inxi
View file

@ -8168,7 +8168,7 @@ get_weather_data()
# some lines might be empty, so ignore those
if (data !~ /^<[^>]+>$/ ) {
returnData=gensub(/(.*>)([^<]*)(<.*)/, "\\2", 1, data)
gsub(/^[[:space:]]+|[[:space:]]+$|NA|N\/A/, "", returnData)
gsub(/^[[:space:]]+|[[:space:]]+$|^NA$|^N\/A$/, "", returnData)
}
return returnData
}