Skip to content

Commit

Permalink
Merge pull request #8877 from jfbu/latex_better_fix_8838
Browse files Browse the repository at this point in the history
Fix #8838 by forcing horizontal mode before inserting the penalty
  • Loading branch information
jfbu committed Feb 12, 2021
2 parents be6391f + 683e64e commit a148909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/texinputs/sphinx.sty
Expand Up @@ -417,7 +417,7 @@
\DisableKeyvalOption{sphinx}{mathnumfig}
% To allow hyphenation of first word in narrow contexts; no option,
% 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
\ifdefined\directlua\let\sphinxAtStartPar\@empty\fi
% user interface: options can be changed midway in a document!
Expand Down

0 comments on commit a148909

Please sign in to comment.