[PATCH] help: add missed last new line to "internals" topic

Yuya Nishihara yuya at tcha.org
Thu Dec 17 14:06:40 UTC 2015


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1450358981 -32400
#      Thu Dec 17 22:29:41 2015 +0900
# Node ID 69541cab1dcd4e9f5e8a137bf53b034da825af5c
# Parent  4f2b6ddb431d921fe3d05d557a7334b76c2f4990
help: add missed last new line to "internals" topic

Caught by test-gendoc.t.

diff --git a/mercurial/help.py b/mercurial/help.py
--- a/mercurial/help.py
+++ b/mercurial/help.py
@@ -174,9 +174,9 @@ def internalshelp(ui):
     """Generate the index for the "internals" topic."""
     lines = []
     for names, header, doc in internalstable:
-        lines.append(' :%s: %s' % (names[0], header))
+        lines.append(' :%s: %s\n' % (names[0], header))
 
-    return '\n'.join(lines)
+    return ''.join(lines)
 
 helptable = sorted([
     (["config", "hgrc"], _("Configuration Files"), loaddoc('config')),


More information about the Mercurial-devel mailing list