Patchwork [3,of,4] help: use single quotes in ``template example``

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 12, 2017, 1:55 p.m.
Message ID <b770d50a3c6256008a6e.1507816543@mimosa>
Download mbox | patch
Permalink /patch/24780/
State Accepted
Headers show

Comments

Yuya Nishihara - Oct. 12, 2017, 1:55 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1507812973 -32400
#      Thu Oct 12 21:56:13 2017 +0900
# Node ID b770d50a3c6256008a6ed6614b21f27e1a09df1b
# Parent  a6cf3a279553d5b089c90585789033988756a24d
help: use single quotes in ``template example``

It was hard to read because ``""`` was rendered as """".

Patch

diff --git a/mercurial/help/templates.txt b/mercurial/help/templates.txt
--- a/mercurial/help/templates.txt
+++ b/mercurial/help/templates.txt
@@ -74,9 +74,9 @@  or a raw string prefix, ``r'...'``.
 
 The dot operator can be used as a shorthand for accessing a sub item:
 
-- ``expr.member`` is roughly equivalent to ``expr % "{member}"`` if ``expr``
+- ``expr.member`` is roughly equivalent to ``expr % '{member}'`` if ``expr``
   returns a non-list/dict. The returned value is not stringified.
-- ``dict.key`` is identical to ``get(dict, "key")``.
+- ``dict.key`` is identical to ``get(dict, 'key')``.
 
 Aliases
 =======