# beamer with \index creates empty lines in the index [closed]

I try to build an index in two columns at the end of my slides. To do so, I use the definitions from Create index entries in beamer with 2 columns (latex-community.org):

\documentclass{beamer}
\usepackage{makeidx}
\makeindex
\newenvironment{theindex}
{\let\item\par %definitions for subitem etc
}{}
\newcommand\indexspace{}

\begin{document}

\begin{frame}{test 1}
\index{Laplace}Laplace transform is... \LaTeXe\ can make you happy!
\index{Test}
\end{frame}

\begin{frame}{test 2}
\printindex \end{frame}
\end{document}


However, sometimes the index entry including the page numbers fits in one line, but nevertheless LaTeX makes an empty line after the entry. It looks pretty ugly... What can I do to avoid the empty lines?

-
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. –  lockstep Mar 18 '12 at 17:50
Also note that you don't have to sign with your name since it automatically appears in the lower right corner of your post. –  lockstep Mar 18 '12 at 17:51
It looks fine with me. Please, run 1) pdflatex, 2) pdflatex again, 3) makeindex, and post the contents of .idx and .ind files. –  tohecz Mar 18 '12 at 18:10