~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/doc_generate/autodoc_man.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-06 00:37:58 UTC
  • mfrom: (2309.3.2 manpage.test)
  • Revision ID: pqm@pqm.ubuntu.com-20070306003758-f693dc70e8b3706b
(bialix,r=john) little fix for manpage generator (handling absent
 help for commands options)

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
                if short_name:
118
118
                    assert len(short_name) == 1
119
119
                    l += ', -' + short_name
120
 
                l += (30 - len(l)) * ' ' + help
121
 
                # TODO: Split help over multiple lines with
122
 
                # correct indenting and wrapping.
 
120
                l += (30 - len(l)) * ' ' + (help or '')
123
121
                wrapped = textwrap.fill(l, initial_indent='',
124
122
                                        subsequent_indent=30*' ')
125
123
                option_str = option_str + wrapped + '\n'