BEGIN{white=0;teaser=0}
{white=0}
/^ *$/{white=1}
teaser == 1 && white == 0 {print ""}
{teaser = 0}
/<!-- *TEASER_END *-->/{
teaser=1
if (white == 0) print "";
}
{print}

Source