diff options
author | Norbert Preining <norbert@preining.info> | 2021-07-01 03:01:47 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2021-07-01 03:01:47 +0000 |
commit | c840f97520ba98156a0ed525d6b5d05ab6a324f6 (patch) | |
tree | 8e6cf79a5019e2dc2811f4a5b032caffb2809226 /macros/latex/required/firstaid/latex2e-first-aid-for-external-files.dtx | |
parent | 916b6828e77bd92bd88d57bad094c4520f0ad65c (diff) |
CTAN sync 202107010301
Diffstat (limited to 'macros/latex/required/firstaid/latex2e-first-aid-for-external-files.dtx')
-rw-r--r-- | macros/latex/required/firstaid/latex2e-first-aid-for-external-files.dtx | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/macros/latex/required/firstaid/latex2e-first-aid-for-external-files.dtx b/macros/latex/required/firstaid/latex2e-first-aid-for-external-files.dtx index da630423c2..b15a63d7ec 100644 --- a/macros/latex/required/firstaid/latex2e-first-aid-for-external-files.dtx +++ b/macros/latex/required/firstaid/latex2e-first-aid-for-external-files.dtx @@ -111,8 +111,8 @@ % \end{macrocode} % % \begin{macrocode} -\def\LaTeXFirstAidDate{2021/06/24} -\def\LaTeXFirstAidVersion{v1.0n} +\def\LaTeXFirstAidDate{2021/06/28} +\def\LaTeXFirstAidVersion{v1.0o} % \end{macrocode} % % \begin{macrocode} @@ -679,6 +679,36 @@ \ExplSyntaxOff % \end{macrocode} % +% The next fixes Github issue 605 (by inserting a \cs{scan\_stop:} +% before doing the check for hmode). +% \begin{macrocode} +\ExplSyntaxOn +\cs_set_protected:Npn \para_end: { + \scan_stop: + \mode_if_horizontal:TF { + \mode_if_inner:F { + \tex_unskip:D + \hook_use:n{para/end} + \@kernel@after@para@end + \mode_if_horizontal:TF { + \if_int_compare:w 0 < \tex_lastnodetype:D + \tex_kern:D \c_zero_dim + \fi: + \tex_par:D + \hook_use:n{para/after} + \@kernel@after@para@after + } + { \msg_error:nnnn { hooks }{ para-mode }{end}{horizontal} } + } + } + \tex_par:D +} +\cs_set_eq:NN \par \para_end: +\cs_set_eq:NN \@@par \para_end: +\cs_set_eq:NN \endgraf \para_end: +\ExplSyntaxOff +% \end{macrocode} +% % \begin{macrocode} %</kernel> % \end{macrocode} |