Fix formatting of grammar blocks.