diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-09-08 00:30:40 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-09-08 00:30:40 +0200 |
commit | 8601b3c9b34e6ff21d413b5b9256d76d867c2aec (patch) | |
tree | 4772ae6802c7dd8491094a53015b7ed5176bc9e0 /tex/context/base/mkiv/strc-sec.mkiv | |
parent | 9e7f89f8e06f60cd518f013074cd56599a69fb8f (diff) | |
download | context-8601b3c9b34e6ff21d413b5b9256d76d867c2aec.tar.gz |
2017-09-07 23:55:00
Diffstat (limited to 'tex/context/base/mkiv/strc-sec.mkiv')
-rw-r--r-- | tex/context/base/mkiv/strc-sec.mkiv | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/strc-sec.mkiv b/tex/context/base/mkiv/strc-sec.mkiv index e976c2373..ef7e9108a 100644 --- a/tex/context/base/mkiv/strc-sec.mkiv +++ b/tex/context/base/mkiv/strc-sec.mkiv @@ -471,9 +471,11 @@ % compatible but better \appendtoks - \doifelse{\headparameter\c!ownnumber}\v!yes - {\setuevalue\currenthead{\strc_sectioning_handle_own[\currenthead]}} - {\setuevalue\currenthead{\strc_sectioning_handle_nop[\currenthead]}}% + \ifx\currenthead\empty \else + \doifelse{\headparameter\c!ownnumber}\v!yes + {\setuevalue\currenthead{\strc_sectioning_handle_own[\currenthead]}} + {\setuevalue\currenthead{\strc_sectioning_handle_nop[\currenthead]}}% + \fi \to \everysetuphead \unexpanded\def\doredefinehead#1#2% called at lua end |