updated to close lists after 2 blank lines