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

Ensure Unix-style line endings. #18

Merged
merged 5 commits into from
Dec 2, 2022

Conversation

rebeccacremona
Copy link
Collaborator

If people submit form data with line breaks in it, browsers may send those breaks as \r\n rather than \n.

This makes a material difference, now that we are using post snippets in the LIL blog: Jekyll looks for the first \n\n to decide where to end the snippet, by default, and there doesn't appear to be a way to ask it to respect universal line endings.

We are all on Macs anyway: I think if we force this to output with Unix-style line endings, we won't have any trouble.

We can consider adding a line-ending check in CI in the website-static repo too; TBD.

Copy link
Contributor

@bensteinberg bensteinberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

@bensteinberg bensteinberg merged commit c6810e3 into harvard-lil:develop Dec 2, 2022
@bensteinberg
Copy link
Contributor

This is deployed.

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

Successfully merging this pull request may close these issues.

2 participants