-
Notifications
You must be signed in to change notification settings - Fork 670
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
dos file format along with a space after +++
in frontmatter causes parsing to fail
#6536
Comments
I just tried to reproduce this, and failed. I took the |
I looked at this some more, and I can reproduce it locally with this combo:
Testing to see if I can reproduce on netlify... |
Okay, you can see this here: Note that Ken is missing: https://testing-dos-line-endings-bug--devopsdays-theme.netlify.com/events/2018-chicago/speakers Note that Ken isn't a link: https://testing-dos-line-endings-bug--devopsdays-theme.netlify.com/events/2018-chicago/program It's difficult to see what's going on unless you pull the branch I'm using in https://github.com/devopsdays/devopsdays-theme/pull/653/files down and then you can see this:
|
+++
in frontmatter causes parsing to fail+++
in frontmatter causes parsing to fail
Possibly relevant: https://discourse.gohugo.io/t/frontmatter-delimiter-must-be-followed-by-cr-lf-or-lf/5328/6
|
Interested in what you think, @mattstratton - I would be inclined to document this and maybe (if we can?) fail the build on dos-style files? |
I like both ideas. Let's start with the documentation; I'm not sure how to check for the CR/LF stuff but I'm sure it's possible. |
Here's a simple check: $ file unixfilename $ file dosfilename |
One of the problems I found in #5338 was that if the first
+++
line of frontmatter in speaker and program files ends in a space like "+++ ", the files don't parse. Can we check for that in the build?The text was updated successfully, but these errors were encountered: