fix comment whitespace and allow empty attributes