remove all blank lines at the beginning of a frame