python/docsbuild-scripts

3.11 library pdf fail to build

JulienPalard opened this issue · 1 comments

On cpython main, running:

make -C Doc 'SPHINXOPTS=-D latex_engine=xelatex -D latex_elements.inputenc= -D latex_elements.fontenc= -j4 -q' SPHINXERRORHANDLING= autobuild-dev

with sphinx 3.2.1 gives:

! 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.1768 ...hanged}{Changed in version 3.3: }\item {
                                                  }
?             

It happens in library.tex around those lines:

\begin{itemize}
\DUrole{versionmodified,changed}{Changed in version 3.3: }\item {} 
The \sphinxstyleemphasis{opener} parameter was added.

\item {} 
The \sphinxcode{\sphinxupquote{'x'}} mode was added.

\item {} 
{\hyperref[\detokenize{library/exceptions:IOError}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{IOError}}}}} used to be raised, it is now an alias of {\hyperref[\detokenize{library/exceptions:OSError}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{OSError}}}}}.

\item {} 
{\hyperref[\detokenize{library/exceptions:FileExistsError}]{\sphinxcrossref{\sphinxcode{\sphinxupquote{FileExistsError}}}}} is now raised if the file opened in exclusive
creation mode (\sphinxcode{\sphinxupquote{'x'}}) already exists.

\end{itemize}

Fixed by #123, thanks @m-aciek!