Parser error with toml engine and CRLF. #92
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
gray-matterwith CRLF, work well.node-tomlwith CRLF, work well too.BUT:
If you run the
tomlexample of README with CRLF file, will get a parse error.Minimal example repo here
I see the point, here of
gray-matteroutput code like:And
node-tomldoesn't trim the input thing for now. Maybe add trim here for engines or else, Any suggestions with this?@robertmassaioli
I can verify this just by modifying line 15 of
examples/toml.jsto be:The error message suggests that the problem is not in the
gray-matterlibrary though. It suggests that the error is in thetomlpackage.In fact, this error message:
Looks like it comes from the PEG.js library, which I assume the
tomllibrary is using internally.Please go raise an issue here to get this problem fixed: https://github.com/BinaryMuse/toml-node
@robertmassaioli thanks for your reply, But don't you think it's a little strange to output
\ras EOFI think this should be reopened. It causes errors on TOML parsing on Windows machines.
Input file: https://github.com/11ty/eleventy/blob/master/test/stubs/custom-frontmatter/template-toml.njk#L1 JavaScript test case: https://github.com/11ty/eleventy/blob/master/test/TemplateTest.js#L1732
Build failure on Windows machines from this: https://travis-ci.org/11ty/eleventy/jobs/550051432 (Works on Linux and Mac https://travis-ci.org/11ty/eleventy/builds/550051427)
I also think that this issue should be reopened to solve the bug that appears on windows