Remove emtpy line from end of blocks