From dd601ab9b6f1203c413992da2e97c224d31ca39c Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 2 Jun 2014 15:05:17 +0200 Subject: [PATCH] Don't use _foo_ inside +foo+. --- scripts/generate_manpage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/generate_manpage.py b/scripts/generate_manpage.py index 95d5304f5..17187d844 100644 --- a/scripts/generate_manpage.py +++ b/scripts/generate_manpage.py @@ -95,9 +95,9 @@ def get_cmd_syntax(name, cmd): if arg in ['self', 'count']: continue if minargs is not None and i <= minargs: - words.append('_<{}>_'.format(arg)) + words.append('<{}>'.format(arg)) elif maxargs is None or i <= maxargs: - words.append('_[<{}>]_'.format(arg)) + words.append('[<{}>]'.format(arg)) i += 1 return (' '.join(words), defaults) @@ -144,7 +144,7 @@ def get_command_doc(name, cmd): if arg_descs: output.append("") for arg, desc in arg_descs.items(): - item = "* +_{}_+: {}".format(arg, ' '.join(desc)) + item = "* +{}+: {}".format(arg, ' '.join(desc)) if arg in defaults: item += " (default: +{}+)".format(defaults[arg]) output.append(item)