~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-06-19 11:01:17 UTC
  • mfrom: (4070.11.16 249908-doc-generate)
  • Revision ID: pqm@pqm.ubuntu.com-20090619110117-rhph89w2k9gavp24
(mbp) various tweaks to doc generation

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
        else:
94
94
            firstline = ''
95
95
        helpstring = '%-*s %s%s' % (max_name, cmd_name, firstline, plugin_name)
96
 
        lines = textwrap.wrap(helpstring, subsequent_indent=indent,
97
 
                              width=width)
 
96
        lines = textwrap.wrap(
 
97
            helpstring, subsequent_indent=indent,
 
98
            width=width,
 
99
            break_long_words=False)
98
100
        for line in lines:
99
101
            out.append(line + '\n')
100
102
    return ''.join(out)