[PATCH 1/2] Insert newline before the %end string closing the section