~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help_topics/__init__.py

  • Committer: Robert Collins
  • Date: 2009-08-04 04:36:34 UTC
  • mfrom: (4583 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4593.
  • Revision ID: robertc@robertcollins.net-20090804043634-2iu9wpcgs273i97s
Merge bzr.dev.

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)