~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc_generate/autodoc_man.py

  • Committer: John Arbash Meinel
  • Date: 2009-07-08 14:37:25 UTC
  • mfrom: (4516 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4517.
  • Revision ID: john@arbash-meinel.com-20090708143725-sc9sjy3mz4cxwxzz
Merge bzr.dev 4516

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2005 Canonical Ltd.
 
1
# Copyright (C) 2005 Canonical Ltd
2
2
 
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
123
123
                if argname is not None:
124
124
                    l += ' ' + argname
125
125
                if short_name:
126
 
                    assert len(short_name) == 1
127
126
                    l += ', -' + short_name
128
127
                l += (30 - len(l)) * ' ' + (help or '')
129
128
                wrapped = textwrap.fill(l, initial_indent='',
130
 
                                        subsequent_indent=30*' ')
 
129
                    subsequent_indent=30*' ',
 
130
                    break_long_words=False,
 
131
                    )
131
132
                option_str = option_str + wrapped + '\n'       
132
133
 
133
134
    aliases_str = ""