equal
deleted
inserted
replaced
140 wid = 20 |
140 wid = 20 |
141 if slice == 'end': |
141 if slice == 'end': |
142 add = encoding.trim(item, wid, leftside=True) |
142 add = encoding.trim(item, wid, leftside=True) |
143 else: |
143 else: |
144 add = encoding.trim(item, wid) |
144 add = encoding.trim(item, wid) |
145 add += (wid - len(add)) * ' ' |
145 add += (wid - encoding.colwidth(add)) * ' ' |
146 elif indicator == 'bar': |
146 elif indicator == 'bar': |
147 add = '' |
147 add = '' |
148 needprogress = True |
148 needprogress = True |
149 elif indicator == 'unit' and unit: |
149 elif indicator == 'unit' and unit: |
150 add = unit |
150 add = unit |