I am placing a label inside a cell in a tabular environment, with the "p" column type. If hyperref is included the cell contains unwanted vertical space messing up the formatting. Without hyperref, the format is correct.
I am guessing this is related to the problem described here and here but I am unable to adapt the solutions to those questions to my situation. How do I obtain the correct spacing without ditching hyperref?
\documentclass{article}
\usepackage{hyperref}
\newcounter{foo}
\renewcommand{\thefoo}{T\arabic{foo}}
\newcommand{\foofoo}{\refstepcounter{foo}\textbf{\thefoo}}
\begin{document}
\begin{tabular}{|p{5mm}|p{80mm}|} \hline
\foofoo\label{foo:jeez} & Jeez \\\hline
& Words words wordsWords words wordsWords words words\\\hline
\end{tabular}
\end{document}
With hyperref:
Without hyperref:
(The code for the second example is as above, but with hyperref commented out.)


