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

CRLF linebreaks in YAML front matter halts execution #48

Closed
juretta opened this issue May 24, 2009 · 1 comment
Closed

CRLF linebreaks in YAML front matter halts execution #48

juretta opened this issue May 24, 2009 · 1 comment

Comments

@juretta
Copy link

juretta commented May 24, 2009

If the YAML front matter contains CRLF (0d0a) linebreaks page generation halts with the following exception:

ArgumentError: syntax error on line 3, col 12: ' /opt/local/lib/ruby/1.8/yaml.rb:133:inload'
/opt/local/lib/ruby/1.8/yaml.rb:133:in `load'

Changing the regex in Jekyll::Convertible#read_yaml to cater for CRLF fixes this issue.

A fix for this defect (with appropriate test case) can be found here:
http://github.com/juretta/jekyll/tree/fixlinebreak-in-frontmatter (#71516fabe).

@qrush
Copy link
Contributor

qrush commented Jun 23, 2009

Merged in. Thanks!

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
pointblack pushed a commit to pointblack/jekyll that referenced this issue Feb 3, 2018
Read google analytics from config - closes jekyll#48
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants