Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 13608:63ab6b0ccedc
help: limit documentation width to at most 80 characters
Reading long lines is suboptimal no matter how wide the terminal is.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Sun, 13 Mar 2011 13:38:44 +0100 |
parents | 0388e3e36693 |
children | 0e217d479c16 |
comparison
equal
deleted
inserted
replaced
13607:2151703e7f84 | 13608:63ab6b0ccedc |
---|---|
1983 topic. | 1983 topic. |
1984 | 1984 |
1985 Returns 0 if successful. | 1985 Returns 0 if successful. |
1986 """ | 1986 """ |
1987 option_lists = [] | 1987 option_lists = [] |
1988 textwidth = ui.termwidth() - 2 | 1988 textwidth = min(ui.termwidth(), 80) - 2 |
1989 | 1989 |
1990 def addglobalopts(aliases): | 1990 def addglobalopts(aliases): |
1991 if ui.verbose: | 1991 if ui.verbose: |
1992 option_lists.append((_("global options:"), globalopts)) | 1992 option_lists.append((_("global options:"), globalopts)) |
1993 if name == 'shortlist': | 1993 if name == 'shortlist': |