Don't use contentType to determine if last deleted text is line-based.
Look for newlines instead (so multi-line text object deletes are treated
as line-based).