Skip to content

List with spaces before the optional argument error #1237

@u-fischer

Description

@u-fischer

The current list implementation doesn't allow a space before the optional argument and so the following errors in a current dev with \DocumentMetadata (and the enumitem emulation) but compiles without it.

\DocumentMetadata{}
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{description}  [leftmargin=1cm] 
\item[Hallo] Welt
\end{description}
\end{document}
! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.123 \begin{description}  [
                            leftmargin=1cm]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions