[fix] added whitespaces between tags

The original output is perfectly valid but the code does not include the formatting whitespaces. This adds the thing.