0
\def\test#1{
\def\csv{#1}
\ifx\csv\empty
\else
X\fi
}


\starttext

This is a test x\test{1}x.

\stoptext

Should result in xXx, but shows x Xx. How do I avoid the leading space here?

Edit: Ok, this has been resolved, but what if I need one or more leading spaces before the Xsuch as x Xx. Using this doesn't help:

\def\test#1{%
\def\csv{#1}%
\ifx\csv\empty%
\else%
    X\fi%
}%

0 Answers0