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

XML generated by conditions is not optimized for Simgear #1

Closed
sanhozay opened this issue May 12, 2017 · 1 comment
Closed

XML generated by conditions is not optimized for Simgear #1

sanhozay opened this issue May 12, 2017 · 1 comment
Assignees

Comments

@sanhozay
Copy link
Owner

Given a condition such as:

a && b && c

The generated output follows the structure of the parse tree, which ends up like:

<and>
  <and>
    <property>a</property>
    <property>b</property>
  </and>
  <property>c</property>
</and>

It should probably output the more readable:

<and>
  <property>a</property>
  <property>b</property>
  <property>c</property>
</and>

The nested form is valid and works perfectly well, but the optimized version is what an aircraft developer would write.

@sanhozay
Copy link
Owner Author

Fixed in 1.1.1.

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

1 participant