From 6feb7979c0effddfc3adb1327248369a1678927f Mon Sep 17 00:00:00 2001 From: "Pradyun S. Gedam" Date: Tue, 3 Oct 2017 22:37:10 +0530 Subject: [PATCH] Strip usage in the documentation This removes a useless empty line in the output. --- docs/pipext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]