[PATCH] help: fix keyword search result formatting

Olav Reinert seroton10 at gmail.com
Mon Jun 4 17:45:51 CDT 2012


# HG changeset patch
# User Olav Reinert <seroton10 at gmail.com>
# Date 1338849138 -7200
# Node ID c3ba67eed09cbe7239f04e5bbbe88c956b6e1b92
# Parent  92cfde8728ac890f9c47d1f54cce456a30ccca98
help: fix keyword search result formatting

This patch fixes the broken formatting of keyword search results. Some blank
lines were missing from the RST markup, which caused markup to be printed.

diff -r 92cfde8728ac -r c3ba67eed09c mercurial/commands.py
--- a/mercurial/commands.py	Mon Jun 04 16:59:57 2012 -0500
+++ b/mercurial/commands.py	Tue Jun 05 00:32:18 2012 +0200
@@ -3332,6 +3332,7 @@
             if matches[t]:
                 rst.append('%s:\n\n' % title)
                 rst.extend(minirst.maketable(matches[t], 1))
+                rst.append('\n')
     elif name and name != 'shortlist':
         i = None
         if unknowncmd:


More information about the Mercurial-devel mailing list