Remove empty blocks and indent HEREDOCs.