Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is form feed a non-permitted line ending according to specification? #27

Open
kaddkaka opened this issue Nov 6, 2023 · 1 comment
Open

Comments

@kaddkaka
Copy link

kaddkaka commented Nov 6, 2023

I'm trying to read the 1.0 specification for the first time, but it's a bit hard to digest.

According to the excerpt below, can I use form feed as a line ending or not?

The following chars are considered line endings:
    - A line feed `U+000A`
    - A form feed `U+000C`
    - A carriage return `U+000D`

    The following line ending combinations are permitted:
    - A single line feed
    - A single carriage return
    - A carriage return immediately followed by a line feed
@mrossinek
Copy link
Member

No, the form feed is the page break character. That means, when a document gets displayed on pages, it will forces whatever comes after it, to start on the next page.
However, this does not mean that the line (or paragraph for that matter) is considered ended/broken, even though it has to be displayed as such (due to the paged output).

See also this document: https://www.unicode.org/standard/reports/tr13/tr13-5.html, especially recommendation 4.5 at the bottom.

I am leaving this issue open because we could be more explicit about this in the spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants