# spurious whitespace in \index with fixme package

Consider the following example:

\documentclass{article}
\usepackage{fixme}
\makeindex
\begin{document}
Ignorance is strength\index{strength}.
\end{document}


Then there will be a white space between “strength” and the full stop. What is the best way to circumvent this problem?

-

You only really needed to give the first two words of your subject:-).

It had to be a missing %, in this case in the fixme package.

\makeatletter
\def\@wrindex#1{%
\ifthenelse{\equal{\cmdfx@note@target}{thepage}}{%
\protected@write\@indexfile{}{\string\indexentry{#1}{\thepage}}}{%
\protected@write\@indexfile{}{\string\indexentry{#1}{\cmdfx@note@target}}}%<<<
\endgroup
\@esphack}
\makeatother


Fixes fixme

-
Thanks. I probably should have found that myself ;-) Anyway, I sent a message to the maintainer of fixme about it. –  canaaerus Jan 17 '13 at 10:25