--- a/hgext/show.py Thu Oct 24 18:04:26 2024 +0200
+++ b/hgext/show.py Thu Oct 24 15:23:52 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 ') % (
- cmdtable[b'show'][0].__doc__.rstrip(),
+ pycompat.cleandoc(cmdtable[b'show'][0].__doc__),
pycompat.sysstr(b'\n\n').join(entries),
)