# Footline colobox spacing problems in Beamer?

I've been trying to customize the footline in a beamer template but when I added a fourth box, the spacing went wacko.

Here's my template:

\DeclareOptionBeamer{compress}{\beamer@compresstrue}
\ProcessOptionsBeamer

\mode<presentation>

\useoutertheme[subsection=false]{miniframes}

% Define colors
\definecolor{beamer@blendedblue}{RGB}{26,89,142}
\definecolor{beamer@darkblue}{RGB}{17,59,94}

% Title block
\setbeamercolor*{title}{use=structure,fg=white,bg=beamer@darkblue}

% Bottom infolines
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{%
% Name and institution
\end{beamercolorbox}%
% Short title
\end{beamercolorbox}%
% Date
\end{beamercolorbox}
% Frame counter

\end{beamercolorbox}}%
\vskip0pt%
}

% Set themes
\useinnertheme{circles}
\usecolortheme{whale}
\usecolortheme{orchid}

% Set colors
\setbeamercolor{structure}{fg=beamer@blendedblue}
\setbeamercolor{titlelike}{parent=structure}
\setbeamercolor{frametitle}{fg=black}
\setbeamercolor{title}{fg=white}
\setbeamercolor{item}{fg=beamer@blendedblue}

\mode
<all>


And my MWE is:

\documentclass[compress]{beamer}

\usetheme{Bread} % Custom theme (listed above)

\title[Uncertainty in Life]{Uncertainty in Life}
\author[Mr. Smith]{John Smith}
\institute[UN]{University of Nowhere}
\date{November 28, 2012}

\begin{document}
\begin{frame}
\end{frame}
\end{document}


As you can tell from the example, there is a slight space between the first and second box, and a large space between the third and fourth box.

-

You forgot to add a % at the end of \end{beamercolorbox} on the third box, just on the line above the % Frame counter comment line.
Remember that newline characters count as a space, so adding a comment right at the end of the line sometimes fixes spacing issues as in this case. Also, take into account that blank lines instruct the TeX engine to start a new paragraph.