The POSIX definition of a line

According to the POSIX.1-2017 standard, a line is defined as:

3.206 Line

A sequence of zero or more non-newline characters plus a terminating newline character.

Source: https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/