fix additional line space after last block in function (regression)