Change layout to handle whitespace between inline elements in HTML file.

This matches the behaviour of other browsers.