changeset 28040:6db47740e681 stable

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.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 05 Feb 2016 23:17:07 +0900
parents 89003c49315c
children 8da94662afe5
files mercurial/help/templates.txt
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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: