(This patch isn't the full story, btw — it will get rid of the crash, but then Docutils will generate incorrect LaTeX: \renewcommand{\labelenumi}{\{enumi}}: that \{ is where the enumtype should be.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The typo went unnoticed since 2015, because it is part of (intended) robust programming.
In a Docutils generated doctree, all list_item nodes in enumerated lists have the 'prefix', 'enumtype', and 'suffix' attributes.
Patches may be done with diff, with SVN or with Git. (Due to SVN limitations, Git patches will not show the creator but the uploader after commit with git-svn.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
(This patch isn't the full story, btw — it will get rid of the crash, but then Docutils will generate incorrect LaTeX:
\renewcommand{\labelenumi}{\{enumi}}: that\{is where theenumtypeshould be.Here is an updated patch, based on what Sphinx does (use reasonable defaults instead of "")
Applied in r8827. Thank you for the patch.
The typo went unnoticed since 2015, because it is part of (intended) robust programming.
In a Docutils generated doctree, all list_item nodes in enumerated lists have the 'prefix', 'enumtype', and 'suffix' attributes.
Patches may be done with
diff, with SVN or with Git. (Due to SVN limitations, Git patches will not show the creator but the uploader after commit with git-svn.)Applied in Docutils 0.18.
Thanks again for the patch