summaryrefslogtreecommitdiff
path: root/tex/context/base/core-int.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/core-int.tex')
-rw-r--r--tex/context/base/core-int.tex16
1 files changed, 10 insertions, 6 deletions
diff --git a/tex/context/base/core-int.tex b/tex/context/base/core-int.tex
index 6402d9664..78906426d 100644
--- a/tex/context/base/core-int.tex
+++ b/tex/context/base/core-int.tex
@@ -322,12 +322,16 @@
% with remarks about third party documents and/or associated
% with documents produced outside our control.
-\def\doprepareidentity
- {\let\!!stringa\@@iakeyword
- \let\@@iakeyword\empty
- \def\doprepareidentity##1{\edef\@@iakeyword
- {\@@iakeyword\ifx\@@iakeyword\empty\else\space\fi##1}}%
- \@EA\processcommacommand\@EA[\!!stringa]\doprepareidentity
+\def\doprepareidentity % beware, we need to construct
+ {\let\!!stringa\@@iakeyword % an unexpanded space separated
+ \let\@@iakeyword\empty % list of keywords from a comma
+ \def\doprepareidentity##1% % separated one
+ {\ifx\@@iakeyword\empty
+ \appended\def\@@iakeyword{##1}%
+ \else
+ \appended\def\@@iakeyword{ ##1}%
+ \fi}%
+ \@EA\processcommalist\@EA[\!!stringa]\doprepareidentity
\global\let\doprepareidentity\relax}
\def\doinitializeidentity#1%