Show More
@@ -268,7 +268,7 b" def trim(s, width, ellipsis='', leftside" | |||||
268 | >>> print trim(t, 1, ellipsis=ellipsis) |
|
268 | >>> print trim(t, 1, ellipsis=ellipsis) | |
269 | + |
|
269 | + | |
270 | >>> u = u'\u3042\u3044\u3046\u3048\u304a' # 2 x 5 = 10 columns |
|
270 | >>> u = u'\u3042\u3044\u3046\u3048\u304a' # 2 x 5 = 10 columns | |
271 | >>> t = u.encode(encoding.encoding) |
|
271 | >>> t = u.encode(pycompat.sysstr(encoding.encoding)) | |
272 | >>> print trim(t, 12, ellipsis=ellipsis) |
|
272 | >>> print trim(t, 12, ellipsis=ellipsis) | |
273 | \xe3\x81\x82\xe3\x81\x84\xe3\x81\x86\xe3\x81\x88\xe3\x81\x8a |
|
273 | \xe3\x81\x82\xe3\x81\x84\xe3\x81\x86\xe3\x81\x88\xe3\x81\x8a | |
274 | >>> print trim(t, 10, ellipsis=ellipsis) |
|
274 | >>> print trim(t, 10, ellipsis=ellipsis) |
General Comments 0
You need to be logged in to leave comments.
Login now