Skip to content

Commit

Permalink
marge
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankMittelbach committed Oct 11, 2018
2 parents ed175e7 + b2bde7e commit 78cc380
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 5 deletions.
4 changes: 4 additions & 0 deletions base/changes.txt
Expand Up @@ -9,6 +9,10 @@ are not part of the distribution.
* ltmiscen.dtx (subsection{Verbatim}):
Provide visible space in \verb* also for XeTeX and LuaTeX (github/69)

2018-10-10 David Carlisle <David.Carlisle@latex-project.org>

* ltspace.dtx: prevent space hacks adding breakpoints (githib 81)

2018-10-05 David Carlisle <David.Carlisle@latex-project.org>

* utf8ienc.dtx: Use hex in invalid byte error (suggested in PR 82 from mirabilos)
Expand Down
35 changes: 30 additions & 5 deletions base/ltspace.dtx
Expand Up @@ -32,7 +32,7 @@
%<*driver>
% \fi
\ProvidesFile{ltspace.dtx}
[2018/09/24 v1.3h LaTeX Kernel (spacing)]
[2018/10/10 v1.3i LaTeX Kernel (spacing)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltspace.dtx}
Expand Down Expand Up @@ -559,8 +559,8 @@
% \changes{v1.3d}{2015/01/11}{Allow hyphenation (Donald Arseneau pr/3498) (latexrelease)}
% \begin{macrocode}
%</2ekernel>
%<latexrelease>\IncludeInRelease{2015/10/01}%
%<latexrelease> {\@esphack}{hyphenation after space hack}%
%<latexrelease>\IncludeInRelease{2018/10/10}%
%<latexrelease> {\@esphack}{hyphenation and nobreak after space hack}%
%<*2ekernel|latexrelease>
\def\@esphack{%
\relax
Expand All @@ -576,11 +576,36 @@
\fi
\ignorespaces
\fi
% \end{macrocode}
% \changes{v1.3i}{2018/10/10}
% {Don't introduce breakpoints if @nobreak is true and after sections}
% \begin{macrocode}
\else
\ifvmode
\if@nobreak\nobreak\else\if@noskipsec\nobreak\fi\fi
\fi
% \end{macrocode}
%
% \begin{macrocode}
\fi}%
%</2ekernel|latexrelease>
%<latexrelease>\EndIncludeInRelease
%<latexrelease>\IncludeInRelease{2015/10/01}%
%<latexrelease> {\@esphack}{hyphenation and nobreak after space hack}%
%<latexrelease>\def\@esphack{%
%<latexrelease> \relax
%<latexrelease> \ifhmode
%<latexrelease> \spacefactor\@savsf
%<latexrelease> \ifdim\@savsk>\z@
%<latexrelease> \ifdim\lastskip=\z@
%<latexrelease> \nobreak \hskip\z@skip
%<latexrelease> \fi
%<latexrelease> \ignorespaces
%<latexrelease> \fi
%<latexrelease> \fi}%
%<latexrelease>\EndIncludeInRelease
%<latexrelease>\IncludeInRelease{2015/01/01}%
%<latexrelease> {\@esphack}{hyphenation after space hack}%
%<latexrelease> {\@esphack}{hyphenation and nobreak after space hack}%
%<latexrelease>\def\@esphack{%
%<latexrelease> \relax
%<latexrelease> \ifhmode
Expand All @@ -592,7 +617,7 @@
%<latexrelease> \fi}%
%<latexrelease>\EndIncludeInRelease
%<latexrelease>\IncludeInRelease{0000/00/00}%
%<latexrelease> {\@esphack}{hyphenation after space hack}%
%<latexrelease> {\@esphack}{hyphenation and nobreak after space hack}%
%<latexrelease>\def\@esphack{%
%<latexrelease> \relax
%<latexrelease> \ifhmode
Expand Down
29 changes: 29 additions & 0 deletions base/testfiles/github-0081.lvt
@@ -0,0 +1,29 @@
\documentclass{article}

\input{test2e}

\begin{document}
\section{Intro}

aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa

aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa

aa\\aa\\aa\\aa\\aa\\aa\\aa\\aa\\aa\\aa\\aa

aaa\\aaa\label{l1}

\subsubsection{Test\label{l2}}
\paragraph{Subsec\label{l3}}\label{subsec}
zz\label{l4}\\zz

\START
\sbox0{\pageref{l1}-\pageref{l2}-\pageref{l3}-\pageref{l4}}

% the page break should not be after a heading so not after l2 or l3
\showbox0

\OMIT
\clearpage
\TIMO
\end{document}
18 changes: 18 additions & 0 deletions base/testfiles/github-0081.tlg
@@ -0,0 +1,18 @@
This is a generated file for the LaTeX2e validation system.
Don't change this file in any respect.
> \box...=
\hbox(6.44444+0.0)x30.00005
.\OT1/cmr/m/n/10 1
.\hbox(0.0+0.0)x0.0
.\OT1/cmr/m/n/10 -
.\OT1/cmr/m/n/10 2
.\hbox(0.0+0.0)x0.0
.\OT1/cmr/m/n/10 -
.\OT1/cmr/m/n/10 2
.\hbox(0.0+0.0)x0.0
.\OT1/cmr/m/n/10 -
.\OT1/cmr/m/n/10 2
.\hbox(0.0+0.0)x0.0
! OK.
l. ...\showbox0
(github-0081.aux)
37 changes: 37 additions & 0 deletions base/testfiles/github-0081b.lvt
@@ -0,0 +1,37 @@
\RequirePackage[2018/04/01]{latexrelease}
\renewcommand\encodingdefault{OT1}% minimise diffs
\fontencoding{\encodingdefault}
\renewcommand\familydefault{cmr}% minimise diffs
\fontfamily{\familydefault}

\documentclass{article}

\input{test2e}

\begin{document}

\section{Intro}

aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa

aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa\\aaa

aa\\aa\\aa\\aa\\aa\\aa\\aa\\aa\\aa\\aa\\aa

aaa\\aaa\label{l1}

\subsubsection{Test\label{l2}}
\paragraph{Subsec\label{l3}}\label{subsec}
zz\label{l4}\\zz

\START
\sbox0{\pageref{l1}-\pageref{l2}-\pageref{l3}-\pageref{l4}}

% the page break should not be after a heading so not after l2 or l3
% older releases break after l2
\showbox0

\OMIT
\clearpage
\TIMO
\end{document}
18 changes: 18 additions & 0 deletions base/testfiles/github-0081b.tlg
@@ -0,0 +1,18 @@
This is a generated file for the LaTeX2e validation system.
Don't change this file in any respect.
> \box...=
\hbox(6.44444+0.0)x30.00005
.\OT1/cmr/m/n/10 1
.\hbox(0.0+0.0)x0.0
.\OT1/cmr/m/n/10 -
.\OT1/cmr/m/n/10 1
.\hbox(0.0+0.0)x0.0
.\OT1/cmr/m/n/10 -
.\OT1/cmr/m/n/10 2
.\hbox(0.0+0.0)x0.0
.\OT1/cmr/m/n/10 -
.\OT1/cmr/m/n/10 2
.\hbox(0.0+0.0)x0.0
! OK.
l. ...\showbox0
(github-0081b.aux)
2 changes: 2 additions & 0 deletions required/tools/testfiles/tlb4159.tlg
Expand Up @@ -160,6 +160,7 @@ Completed box being shipped out [1]
...\glue 6.45831 plus 0.86108
...\write1{\newlabel{sec-def}{{1.1}{\thepage }}}
...\penalty 10000
...\penalty 10000
...\glue(\parskip) 0.0 plus 1.0
...\glue(\baselineskip) 5.05556
...\hbox(6.94444+0.0)x345.0, glue set 212.13127fil
Expand Down Expand Up @@ -224,6 +225,7 @@ Completed box being shipped out [1]
...\glue 6.45831 plus 0.86108
...\write1{\newlabel{subsec-parity}{{1.1.2}{\thepage }}}
...\penalty 10000
...\penalty 10000
...\glue -1.94444
...\glue 0.0 plus 1.0fil
...\glue 0.0
Expand Down

0 comments on commit 78cc380

Please sign in to comment.