diff options
Diffstat (limited to 'tex/context/base/mkxl/spac-prf.mklx')
-rw-r--r-- | tex/context/base/mkxl/spac-prf.mklx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tex/context/base/mkxl/spac-prf.mklx b/tex/context/base/mkxl/spac-prf.mklx index 585437ac4..6b4a966f2 100644 --- a/tex/context/base/mkxl/spac-prf.mklx +++ b/tex/context/base/mkxl/spac-prf.mklx @@ -20,11 +20,11 @@ \unprotect -\registerctxluafile{spac-prf}{} +\registerctxluafile{spac-prf}{autosuffix} \definesystemattribute[profilemethod][public] -\installcorenamespace {profile} % beware, profiles are not like in mkii at all +\installcorenamespace {profile} \installcorenamespace {profiles} \installcommandhandler \??profile {profile} \??profile @@ -84,11 +84,11 @@ \ifparameter#settings\or \edef\currentprofile{#profile}% \setupcurrentprofile[#settings]% + \orelse\ifhastok={#profile}% + \let\currentprofile\v!none + \setupcurrentprofile[#profile]% \else - \doifassignmentelse{#profile} - {\let\currentprofile\v!none - \setupcurrentprofile[#profile]}% - {\edef\currentprofile{#profile}}% + \edef\currentprofile{#profile}% \fi \dowithnextbox {\profilegivenbox\currentprofile\nextbox |