#4563: disable alpha and roman lists, fixes wrong formatting of contributor list.

This commit is contained in:
Georg Brandl 2009-02-05 11:38:23 +00:00
parent 2b0dd8e199
commit 85c5ccfab9
1 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,14 @@ ISSUE_URI = 'http://bugs.python.org/issue%s'
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