remove traling spaces from non empty lines in command output
[spider.git] / perl / DXCommandmode.pm
index 60c7f1086d228ccc03c68f5364fe9ee71134803d..42b2efbb8ca93ea2234a32618a3afefd2d8e4343 100644 (file)
@@ -470,7 +470,7 @@ sub run_cmd
                        return ();
                }
        }
-       return (@ans);
+       return map {s/[^\s]\s+$//; $_} @ans;
 }
 
 #