Mercurial > public > mercurial-scm > hg
diff mercurial/minirst.py @ 27729:58f8b29c37ff
minirst: change hgrole to use single quotes
We decided to reserve double quotes for arguments to hg because cmd
does not like single quotes, so switch the outer quotes to single
author | timeless <timeless@mozdev.org> |
---|---|
date | Tue, 12 Jan 2016 06:03:36 +0000 |
parents | 1d7e824ad093 |
children | aaabed77791a |
line wrap: on
line diff
--- a/mercurial/minirst.py Sun Dec 13 22:09:57 2015 +0900 +++ b/mercurial/minirst.py Tue Jan 12 06:03:36 2016 +0000 @@ -368,7 +368,7 @@ return blocks def hgrole(blocks): - substs = [(':hg:`', '"hg '), ('`', '"')] + substs = [(':hg:`', "'hg "), ('`', "'")] for b in blocks: if b['type'] in ('paragraph', 'section'): # Turn :hg:`command` into "hg command". This also works