Shouldn't this be `end_with("\n")`?