Patchwork [STABLE] histedit: fix reST syntax problem of example code in help document

login
register
mail settings
Submitter Katsunori FUJIWARA
Date April 28, 2015, 2:42 p.m.
Message ID <b08d8ada1c7b91499c7f.1430232131@feefifofum>
Download mbox | patch
Permalink /patch/8812/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - April 28, 2015, 2:42 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1430231238 -32400
#      Tue Apr 28 23:27:18 2015 +0900
# Branch stable
# Node ID b08d8ada1c7b91499c7f2b7d9858d6a26eda1fd5
# Parent  bff42a92012e49aabd925caa3cb243116285e243
histedit: fix reST syntax problem of example code in help document

To show example code correctly in online help, text block of it should
be preceded by "::" and indented.
Matt Mackall - April 28, 2015, 7:28 p.m.
On Tue, 2015-04-28 at 23:42 +0900, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
> # Date 1430231238 -32400
> #      Tue Apr 28 23:27:18 2015 +0900
> # Branch stable
> # Node ID b08d8ada1c7b91499c7f2b7d9858d6a26eda1fd5
> # Parent  bff42a92012e49aabd925caa3cb243116285e243
> histedit: fix reST syntax problem of example code in help document

Queued for stable, thanks.

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -145,10 +145,10 @@ 
 
 Histedit rule lines are truncated to 80 characters by default. You
 can customise this behaviour by setting a different length in your
-configuration file:
-
-[histedit]
-linelen = 120      # truncate rule lines at 120 characters
+configuration file::
+
+  [histedit]
+  linelen = 120      # truncate rule lines at 120 characters
 """
 
 try: