diff hgext/show.py @ 52094:b5efb7a7d2a5 stable

docstring: backed out changeset 51057ab0dffa In retrospect this is too much of a behavior change for stable. So I grafted the same change as 31076a2301f1 on default, and I am backing out its version on stable.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 25 Oct 2024 23:54:24 +0200
parents 51057ab0dffa
children 19ae7730636a
line wrap: on
line diff
--- a/hgext/show.py	Thu Oct 24 18:58:58 2024 +0200
+++ b/hgext/show.py	Fri Oct 25 23:54:24 2024 +0200
@@ -513,7 +513,7 @@
     entries = []
     for key in sorted(showview._table.keys()):
         entries.append(
-            r'%s   %s'
+            r'    %s   %s'
             % (
                 pycompat.sysstr(key.ljust(longest)),
                 showview._table[key]._origdoc,
@@ -521,7 +521,7 @@
         )
 
     cmdtable[b'show'][0].__doc__ = pycompat.sysstr(b'%s\n\n%s\n    ') % (
-        pycompat.cleandoc(cmdtable[b'show'][0].__doc__),
+        cmdtable[b'show'][0].__doc__.rstrip(),
         pycompat.sysstr(b'\n\n').join(entries),
     )