# HG changeset patch # User Yuya Nishihara # Date 2016-02-05 14:17:07 # 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 --git a/mercurial/help/templates.txt b/mercurial/help/templates.txt --- a/mercurial/help/templates.txt +++ b/mercurial/help/templates.txt @@ -43,13 +43,13 @@ In addition to filters, there are some b .. 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: