cut the empty lines after #\\endif