Strip usage in the documentation

This removes a useless empty line in the output.
This commit is contained in:
Pradyun S. Gedam 2017-10-03 22:37:10 +05:30
parent d339351a41
commit 6feb7979c0
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class PipCommandUsage(rst.Directive):
def run(self):
cmd = commands[self.arguments[0]]
prog = '%s %s' % (get_prog(), cmd.name)
usage = dedent(cmd.usage.replace('%prog', prog))
usage = dedent(cmd.usage.replace('%prog', prog)).strip()
node = nodes.literal_block(usage, usage)
return [node]