fix whitespace handling with inline tags

Removing whitespace one char at a time to not lose the space in an
inline element. Also now try and completely ignore ignored tags.