Remove empty lines from start and end of function blocks