fix for newline characters getting past the blank text detection