Simplify newline tests since we normalize line endings in next().