diff options
| author | Georg Brandl <georg@python.org> | 2009-02-05 11:38:23 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-02-05 11:38:23 (GMT) |
| commit | 85c5ccfab94012b2a7c5f3e98014a75be4b06c52 (patch) | |
| tree | a34526af7264d4f5b134494f3ffeb33a97df5657 | |
| parent | 2b0dd8e199f45cb495593d43dd0ecce2c752d46c (diff) | |
| download | cpython-85c5ccfab94012b2a7c5f3e98014a75be4b06c52.zip cpython-85c5ccfab94012b2a7c5f3e98014a75be4b06c52.tar.gz cpython-85c5ccfab94012b2a7c5f3e98014a75be4b06c52.tar.bz2 | |
#4563: disable alpha and roman lists, fixes wrong formatting of contributor list.
| -rw-r--r-- | Doc/tools/sphinxext/pyspecific.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/tools/sphinxext/pyspecific.py b/Doc/tools/sphinxext/pyspecific.py index 018f4ac..fefe1c1 100644 --- a/Doc/tools/sphinxext/pyspecific.py +++ b/Doc/tools/sphinxext/pyspecific.py @@ -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 |
