##// END OF EJS Templates
encoding: make getcols() raise exception explicitly...
Yuya Nishihara -
r44074:7cf33231 default
parent child Browse files
Show More
@@ -327,6 +327,7 b' def getcols(s, start, c):'
327 t = s[start:x]
327 t = s[start:x]
328 if colwidth(t) == c:
328 if colwidth(t) == c:
329 return t
329 return t
330 raise ValueError('substring not found')
330
331
331
332
332 def trim(s, width, ellipsis=b'', leftside=False):
333 def trim(s, width, ellipsis=b'', leftside=False):
General Comments 0
You need to be logged in to leave comments. Login now