Skip to content

Commit

Permalink
Merge pull request #4762 from pradyunsg/docs/strip-usage
Browse files Browse the repository at this point in the history
Strip usage in the documentation
  • Loading branch information
dstufft committed Oct 4, 2017
2 parents ae7bbee + 6feb797 commit 5bad1e4
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 5bad1e4

Please sign in to comment.