According to the grammar for flag params the white space between the flags is optional. The only way to account for this in the current parsing algorithm seems to be to add some additional context when reading parameters to know when we're parsing an EllipticalArc command, and then when we're on either the 4th or 5th param, whose type should be understood as a flag, rather than a number, and parsed according to the optional nature of the adjacent whitespace.
This PR is one way to do that and includes test coverage of relevant cases.
According to the grammar for flag params the white space between the flags is optional. The only way to account for this in the current parsing algorithm seems to be to add some additional context when reading parameters to know when we're parsing an EllipticalArc command, and then when we're on either the 4th or 5th param, whose type should be understood as a
flag
, rather than anumber
, and parsed according to the optional nature of the adjacent whitespace.This PR is one way to do that and includes test coverage of relevant cases.