mpf
mpf copied to clipboard
Ignore empty lines (whitespace) at the beginning of yaml files
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.
I don't think this is a very good idea. Why do you want this exactly?
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.