# HG changeset patch # User Yuya Nishihara # Date 1454681827 -32400 # Node ID 6db47740e68122dd889e80e10e47d1fc622d2440 # Parent 89003c49315c507a5bab40ddd7f790791ec7c30c 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. diff -r 89003c49315c -r 6db47740e681 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: