diff --git a/docs/pipext.py b/docs/pipext.py index 91c96f7fcff..39ee3413daf 100644 --- a/docs/pipext.py +++ b/docs/pipext.py @@ -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]