summaryrefslogtreecommitdiff
path: root/macros/luatex/optex/base/sections.opm
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-12-22 03:02:03 +0000
committerNorbert Preining <norbert@preining.info>2020-12-22 03:02:03 +0000
commit6385395b92eec56d518f264568394f0865bbae58 (patch)
tree3ae5ba405888ccba8b730d93bf288dbbef9ede6e /macros/luatex/optex/base/sections.opm
parent4cc7922324b7a08ba0418e8f245cf1dcfa1891ac (diff)
CTAN sync 202012220302
Diffstat (limited to 'macros/luatex/optex/base/sections.opm')
-rw-r--r--macros/luatex/optex/base/sections.opm4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/luatex/optex/base/sections.opm b/macros/luatex/optex/base/sections.opm
index 20f3f063dd..0bfcb8e74e 100644
--- a/macros/luatex/optex/base/sections.opm
+++ b/macros/luatex/optex/base/sections.opm
@@ -241,9 +241,9 @@
\_newskip \_savedtitleskip
\_newskip \_savedlastskip
\_def\_abovetitle #1#2{\_savedlastskip=\_lastskip % <whatever-skip>
- \_ifdim\_lastskip>0pt \_vskip-\_lastskip \_fi
+ \_ifdim\_lastskip>\_zo \_vskip-\_lastskip \_fi
\_ifnum\_lastpenalty=11333 \_vskip-\_savedtitleskip \_else #1\_fi
- \_ifdim\_savedlastskip>0pt \_setbox0=\_vbox{#2\_global\_tmpdim=\_lastskip}%
+ \_ifdim\_savedlastskip>\_zo \_setbox0=\_vbox{#2\_global\_tmpdim=\_lastskip}%
\_else \_tmpdim=\_maxdimen \_fi
\_ifdim\_savedlastskip>\_tmpdim \vskip\_savedlastskip \_else #2\_fi
}