in reply to Replace leading Spaces after a tag

You might also consider stripping the <br>s altogether (update: for newlines, I mean) and changing the CSS white-space property in the parent to pre or pre-wrap. I know HTML is a sloppy business but &nbsp;, much like <br> itself, is a hacky solution for getting layout the way it should be.