~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help_topics/__init__.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:
207
207
    import textwrap
208
208
 
209
209
    def add_string(proto, help, maxl, prefix_width=20):
210
 
       help_lines = textwrap.wrap(help, maxl - prefix_width)
 
210
       help_lines = textwrap.wrap(help, maxl - prefix_width,
 
211
            break_long_words=False)
211
212
       line_with_indent = '\n' + ' ' * prefix_width
212
213
       help_text = line_with_indent.join(help_lines)
213
214
       return "%-20s%s\n" % (proto, help_text)