~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Vincent Ladeuil
  • Date: 2011-05-14 14:10:56 UTC
  • mto: This revision was merged to the branch mainline in revision 5864.
  • Revision ID: v.ladeuil+lp@free.fr-20110514141056-t1i6suc9fax6iuf9
Fix some ReST typos in the configuration help and restore the workaround for dotted format names breaking sphinx.

Show diffs side-by-side

added added

removed removed

Lines of Context:
520
520
        # so we get <https://bugs.launchpad.net/bzr/+bug/249908>.  -- mbp
521
521
        # 20090319
522
522
        options = option.get_optparser(self.options()).format_option_help()
523
 
        # XXX: According to the spec, ReST option lists actually don't support 
524
 
        # options like --1.9 so that causes syntax errors (in Sphinx at least).
525
 
        # As that pattern always appears in the commands that break, we trap
526
 
        # on that and then format that block of 'format' options as a literal
527
 
        # block.
528
 
        if not plain and options.find('  --1.9  ') != -1:
 
523
        # FIXME: According to the spec, ReST option lists actually don't
 
524
        # support options like --1.14 so that causes syntax errors (in Sphinx
 
525
        # at least).  As that pattern always appears in the commands that
 
526
        # break, we trap on that and then format that block of 'format' options
 
527
        # as a literal block. We use the most recent format still listed so we
 
528
        # don't have to do that too often -- vila 20110514
 
529
        if not plain and options.find('  --1.14  ') != -1:
529
530
            options = options.replace(' format:\n', ' format::\n\n', 1)
530
531
        if options.startswith('Options:'):
531
532
            result += ':' + options