Fixed a bug in HTML handling

Had been failing if there was *no* whitespace between tags.