~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/doc_generate/autodoc_man.py

  • Committer: Jelmer Vernooij
  • Date: 2009-04-10 15:58:09 UTC
  • mto: This revision was merged to the branch mainline in revision 4284.
  • Revision ID: jelmer@samba.org-20090410155809-kdibzcjvp7pdb83f
Fix missing import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2010 Canonical Ltd
 
1
# Copyright 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
126
127
                    l += ', -' + short_name
127
128
                l += (30 - len(l)) * ' ' + (help or '')
128
129
                wrapped = textwrap.fill(l, initial_indent='',
129
 
                    subsequent_indent=30*' ',
130
 
                    break_long_words=False,
131
 
                    )
 
130
                                        subsequent_indent=30*' ')
132
131
                option_str = option_str + wrapped + '\n'       
133
132
 
134
133
    aliases_str = ""
171
170
man_head = """\
172
171
.TH bzr 1 "%(datestamp)s" "%(version)s" "Bazaar"
173
172
.SH "NAME"
174
 
%(bzrcmd)s - Bazaar next-generation distributed version control
 
173
Bazaar (%(bzrcmd)s) - next-generation distributed version control
175
174
.SH "SYNOPSIS"
176
175
.B "%(bzrcmd)s"
177
176
.I "command"
241
240
.br
242
241
log10 = log --short -r -10..-1
243
242
.SH "SEE ALSO"
244
 
.UR http://www.bazaar.canonical.com/
245
 
.BR http://www.bazaar.canonical.com/
 
243
.UR http://www.bazaar-vcs.org/
 
244
.BR http://www.bazaar-vcs.org/
246
245
"""
247
246