summaryrefslogtreecommitdiff
path: root/tex/context/base/core-gen.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/core-gen.tex')
-rw-r--r--tex/context/base/core-gen.tex15
1 files changed, 6 insertions, 9 deletions
diff --git a/tex/context/base/core-gen.tex b/tex/context/base/core-gen.tex
index f9866284a..679dbcddc 100644
--- a/tex/context/base/core-gen.tex
+++ b/tex/context/base/core-gen.tex
@@ -225,16 +225,13 @@
%D met 1~em vermeerderd.
\def\assignwidth#1#2#3#4%
- {\doifelse{#2}{}
- {\setbox0=\hbox{#3}%
- #1=\wd0}
+ {\doifelsenothing{#2}
+ {\setbox0\hbox{#3}%
+ #1\wd0}
{\doifinsetelse{#2}{\v!passend,\v!ruim}
{\setbox0=\hbox{#3}%
- #1=\wd0
- \doif{#2}{\v!ruim}
- {\advance#1 by #4}}%
+ #1\wd0
+ \doif{#2}\v!ruim{\advance#1 #4}}%
{#1=#2}}}%
-\protect
-
-\endinput
+\protect \endinput