Bugfix lack of whitespace

Should fix issue 24 where the text was incorrectly truncated if no
whitespace is used in the HTML