help: update template examples to use reST literal syntax stable
authorYuya Nishihara <yuya@tcha.org>
Fri, 05 Feb 2016 23:17:07 +0900
branchstable
changeset 28040 6db47740e681
parent 28039 89003c49315c
child 28041 8da94662afe5
help: update template examples to use reST literal syntax This should prevent processing backslashes as reST syntax elements. Before this patch, '\' was lost in HTML and man pages.
mercurial/help/templates.txt
--- a/mercurial/help/templates.txt	Sat Feb 06 20:43:20 2016 +0900
+++ b/mercurial/help/templates.txt	Fri Feb 05 23:17:07 2016 +0900
@@ -43,13 +43,13 @@
 
 .. functionsmarker
 
-Also, for any expression that returns a list, there is a list operator:
+Also, for any expression that returns a list, there is a list operator::
 
-- expr % "{template}"
+    expr % "{template}"
 
-As seen in the above example, "{template}" is interpreted as a template.
-To prevent it from being interpreted, you can use an escape character "\{"
-or a raw string prefix, "r'...'".
+As seen in the above example, ``{template}`` is interpreted as a template.
+To prevent it from being interpreted, you can use an escape character ``\{``
+or a raw string prefix, ``r'...'``.
 
 Some sample command line templates: