Require blocks to begin and end with a newline.

Related to #9849, #10072