Show More
@@ -1272,7 +1272,9 b' def termwidth():' | |||||
1272 | pass |
|
1272 | pass | |
1273 | return 80 |
|
1273 | return 80 | |
1274 |
|
1274 | |||
1275 |
def wrap(line, hangindent, width= |
|
1275 | def wrap(line, hangindent, width=None): | |
|
1276 | if width is None: | |||
|
1277 | width = termwidth() - 2 | |||
1276 | padding = '\n' + ' ' * hangindent |
|
1278 | padding = '\n' + ' ' * hangindent | |
1277 | return padding.join(textwrap.wrap(line, width=width - hangindent)) |
|
1279 | return padding.join(textwrap.wrap(line, width=width - hangindent)) | |
1278 |
|
1280 |
General Comments 0
You need to be logged in to leave comments.
Login now