minirst: remove "admonition" from _admonitions
authorGregory Szorc <gregory.szorc@gmail.com>
Wed, 29 Mar 2017 20:05:18 -0700
changeset 31713 32a563a01da4
parent 31712 b3640334a43a
child 31714 bbf7a29dcf9b
minirst: remove "admonition" from _admonitions The "admonition" rst primitive is split into "specific" admonitions ("attention," "caution," etc) and the "generic" admonition ("admonition"). For more, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#admonitions The _admonitions set and keys of the _admonitiontitles dict overlap exactly except _admonitions has an "admonition" entry. Nowhere in Mercurial is the "admonition" admonition directive used. Even if it were, it doesn't have a title, so it wouldn't be rendered correctly. So, let's remove "admonition" from the set of recognized admonition directives.
mercurial/minirst.py
--- a/mercurial/minirst.py	Wed Mar 29 19:59:47 2017 -0700
+++ b/mercurial/minirst.py	Wed Mar 29 20:05:18 2017 -0700
@@ -414,7 +414,6 @@
 
 
 _admonitions = set([
-    'admonition',
     'attention',
     'caution',
     'danger',