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

Ignore empty lines (whitespace) at the beginning of yaml files #1533

Open
cfbenn opened this issue Sep 25, 2020 · 2 comments
Open

Ignore empty lines (whitespace) at the beginning of yaml files #1533

cfbenn opened this issue Sep 25, 2020 · 2 comments

Comments

@cfbenn
Copy link
Contributor

cfbenn commented Sep 25, 2020

Request:

It appears that MPF looks for "#config_version=5" on the very first line. If it is on the second line (after a crlf) it will throw the following error:

AssertionError: Version mismatch. Expected: #config_version=5 Actual: Files: [file path]

Ignoring leading white space should fix this.

@jabdoa2
Copy link
Collaborator

jabdoa2 commented Oct 3, 2020

I don't think this is a very good idea. Why do you want this exactly?

@cfbenn
Copy link
Contributor Author

cfbenn commented Oct 8, 2020

Various times I have added in a leading CRLF and it has caused a runtime issue. I assumed since leading space/crlf's aren't really valid, they could be stripped to make the YAML a little more forgiving.

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

No branches or pull requests

2 participants