Don't disable alphabetical and roman lists anymore.

This commit is contained in:
Georg Brandl 2008-10-25 16:53:29 +00:00
parent 8c39c19bf3
commit 3715bd90a0
3 changed files with 3 additions and 13 deletions

View File

@ -25,6 +25,9 @@ New features added
- Added ``cmember`` role for consistency.
- Lists enumerated by letters or roman numerals are now handled like in
standard reST.
* HTML output and templates:
- Incompatible change: The "root" relation link (top left in the

View File

@ -67,12 +67,6 @@ autonumbered using a ``#`` sign::
#. This is a numbered list.
#. It has two items too.
Note that Sphinx disables the use of enumerated lists introduced by alphabetic
or roman numerals, such as ::
A. First item
B. Second item
Nested lists are possible, but be aware that they must be separated from the
parent list items by blank lines::

View File

@ -41,13 +41,6 @@ from docutils.writers import UnfilteredWriter
from docutils.transforms import Transform
from docutils.transforms.parts import ContentsFilter
# 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
from sphinx import addnodes
from sphinx.util import get_matching_docs, SEP
from sphinx.directives import additional_xref_types