I would not classify newlines as invisible characters. Except maybe the last newline in the file.
Invisible characters are those that you can't tell if they're present or not. Assuming there are visible characters following, a newline can be clearly "seen" because it shifts the remaining text one line lower.