Skip to content

Commit

Permalink
Strip usage in the documentation
Browse files Browse the repository at this point in the history
This removes a useless empty line in the output.
  • Loading branch information
pradyunsg committed Oct 3, 2017
1 parent d339351 commit 6feb797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pipext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down

0 comments on commit 6feb797

Please sign in to comment.