(2020-05-02, 9:53)Stefan Frenz Wrote: After thinking two nights about it and reading the LEOCad meta command description, it seems that they need to be at this place for LEOCad. So it will become something between option 1 and 2: be able to read and generally ignore additional metas in the header and do not move them, write them back at the same position of not explicitly (re)moved, and offer an option to automatically (re)move them for OMR compliance.
I meant to reply earlier but got distracted,
Anyway, from a File Format standpoint, having a meta probably isn't desired as the first line of a file as it should result in the META being ignored and the line being consider the file title.
https://www.ldraw.org/article/218.html#lt0
"If the first line of a file is a line type 0 the remainder of the line is considered the file title (see Library Header specification). This overrides any META commands on that line."
Therefore, it's not "illegal" but, also, not recommend as it should (if the program fully conforms to the spec) lead to an unexpected outcome. You might want to inform Leonardo to change this behavior.