summaryrefslogtreecommitdiff
path: root/tex/context/base/mkxl/strc-sec.mkxl
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-06-13 20:18:45 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-06-13 20:18:45 +0200
commit213813e4bd4ef8d9bbe79100d80e960b7ba53649 (patch)
treea92b9d02f38e87063f0ea2b512f936bd4b2affb8 /tex/context/base/mkxl/strc-sec.mkxl
parentc2d1340b17aab1f84717895516c128dc2552c199 (diff)
downloadcontext-213813e4bd4ef8d9bbe79100d80e960b7ba53649.tar.gz
2021-06-13 19:21:00
Diffstat (limited to 'tex/context/base/mkxl/strc-sec.mkxl')
-rw-r--r--tex/context/base/mkxl/strc-sec.mkxl12
1 files changed, 5 insertions, 7 deletions
diff --git a/tex/context/base/mkxl/strc-sec.mkxl b/tex/context/base/mkxl/strc-sec.mkxl
index a5b3cde6e..19eeb262e 100644
--- a/tex/context/base/mkxl/strc-sec.mkxl
+++ b/tex/context/base/mkxl/strc-sec.mkxl
@@ -981,14 +981,12 @@
\setfalse\c_strc_sectioning_ignore_page
% ignorespaces prevents spaces creeping in when after=\dontleavehmode
\dostarttagged\t!sectioncontent\empty
- \ifempty\currentstructureplaceholder
- \ifconditional\headisdisplay
- \doubleexpandafter\ignorespaces
- \else
- \doubleexpandafter\ignorepars
- \fi
+ \unless\ifempty\currentstructureplaceholder
+ \expandafter\strc_sectioning_placeholder
+ \orelse\ifconditional\headisdisplay
+ \expandafter\ignorespaces
\else
- \expandafter\strc_sectioning_placeholder
+ \expandafter\ignorepars
\fi}
%D \starttyping