Consider the following attempt:
% \iffalse
%<*driver>
\ProvidesFile{duck.tex}
%</driver>
%
%<*driver>
\documentclass{l3doc}
\begin{document}
\DocInput{duck.dtx}
\PrintIndex
\end{document}
%</driver>
% \fi
% \DoNotIndex{^^A
% \def,^^A Works.
% \csname\space\endcsname,^^A Doesn't work.
% \ ,^^A Doesn't work.
% }
% \begin{documentation}
% \begin{function}{\foobar}
% Prints out `foo bar'.
% \end{function}
% \end{documentation}
% \begin{implementation}
% \begin{macro}{\foobar}
% This is the code for \cs{foobar}.
% \begin{macrocode}
\def\foo{foo}
\def\bar{bar}
\def\foobar{\foo\ \bar}
% \end{macrocode}
% \end{macro}
% \end{implementation}
% \Finale
It produces:
I understand why it produces \␣ in the 'Symbols' section of the index, but I want to stop this behavior. What should I add to \DoNotIndex?
