##// END OF EJS Templates
%global eat unnecessary newline
vivainio -
Show More
@@ -21,7 +21,8 b' def global_f(self,cmdline):'
21 cmdline = '-rx ' + cmdline
21 cmdline = '-rx ' + cmdline
22 simple = 1
22 simple = 1
23
23
24 lines = os.popen( global_bin + ' ' + cmdline ).readlines()
24 lines = [l.rstrip() for l in os.popen( global_bin + ' ' + cmdline ).readlines()]
25
25 if simple:
26 if simple:
26 parts = [l.split(None,3) for l in lines]
27 parts = [l.split(None,3) for l in lines]
27 lines = ['%s [%s]\n%s' % (p[2].rjust(70),p[1],p[3].rstrip()) for p in parts]
28 lines = ['%s [%s]\n%s' % (p[2].rjust(70),p[1],p[3].rstrip()) for p in parts]
General Comments 0
You need to be logged in to leave comments. Login now