[Python-checkins] r69300 - python/trunk/Doc/tools/sphinxext/pyspecific.py
georg.brandl
python-checkins at python.org
Thu Feb 5 12:38:23 CET 2009
Author: georg.brandl
Date: Thu Feb 5 12:38:23 2009
New Revision: 69300
Log:
#4563: disable alpha and roman lists, fixes wrong formatting of contributor list.
Modified:
python/trunk/Doc/tools/sphinxext/pyspecific.py
Modified: python/trunk/Doc/tools/sphinxext/pyspecific.py
==============================================================================
--- python/trunk/Doc/tools/sphinxext/pyspecific.py (original)
+++ python/trunk/Doc/tools/sphinxext/pyspecific.py Thu Feb 5 12:38:23 2009
@@ -13,6 +13,14 @@
from docutils import nodes, utils
+# monkey-patch reST parser to disable alphabetic and roman enumerated lists
+from docutils.parsers.rst.states import Body
+Body.enum.converters['loweralpha'] = \
+ Body.enum.converters['upperalpha'] = \
+ Body.enum.converters['lowerroman'] = \
+ Body.enum.converters['upperroman'] = lambda x: None
+
+
def issue_role(typ, rawtext, text, lineno, inliner, options={}, content=[]):
issue = utils.unescape(text)
text = 'issue ' + issue
More information about the Python-checkins
mailing list