mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #8838 by forcing horizontal mode before inserting the penalty
This commit is contained in:
@@ -417,7 +417,7 @@
|
|||||||
\DisableKeyvalOption{sphinx}{mathnumfig}
|
\DisableKeyvalOption{sphinx}{mathnumfig}
|
||||||
% To allow hyphenation of first word in narrow contexts; no option,
|
% To allow hyphenation of first word in narrow contexts; no option,
|
||||||
% customization to be done via 'preamble' key
|
% customization to be done via 'preamble' key
|
||||||
\newcommand*\sphinxAtStartPar{\hskip\z@skip}
|
\newcommand*\sphinxAtStartPar{\leavevmode\nobreak\hskip\z@skip}
|
||||||
% No need for the \hspace{0pt} trick (\hskip\z@skip) with luatex
|
% No need for the \hspace{0pt} trick (\hskip\z@skip) with luatex
|
||||||
\ifdefined\directlua\let\sphinxAtStartPar\@empty\fi
|
\ifdefined\directlua\let\sphinxAtStartPar\@empty\fi
|
||||||
% user interface: options can be changed midway in a document!
|
% user interface: options can be changed midway in a document!
|
||||||
|
|||||||
Reference in New Issue
Block a user