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

Clarify "can contain" documentation and error handling #2702

Merged
merged 2 commits into from
Dec 18, 2019

Conversation

Phlosioneer
Copy link
Contributor

All "can contain" entries have been split into "can contain at most one"
and "can contain any number". Additionally, there is now a note to
implementors at the top of the specification listing how to handle parsing
errors. (More of a reminder on how to handle XML errors in general, since
TMX is a form of XML.)

Closes #696, #1754

All "can contain" entries have been split into "can contain at most one"
and "can contain any number". Additionally, there is now a note to
implementors at the top of the specification listing how to handle parsing
errors. (More of a reminder on how to handle XML errors in general, since
TMX is a form of XML.)

Closes mapeditor#696, mapeditor#1754
Copy link
Member

@bjorn bjorn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A very welcome extension of the TMX format reference!

I'm not sure if it closes #696 because that issue also mentions that the optionality of attributes is not clear, but maybe that's been clarified already in the meantime? I usually try to document the default value, which already implies the attribute is optional.

docs/reference/tmx-map-format.rst Outdated Show resolved Hide resolved
docs/reference/tmx-map-format.rst Outdated Show resolved Hide resolved
@bjorn bjorn merged commit 916be54 into mapeditor:master Dec 18, 2019
@bjorn
Copy link
Member

bjorn commented Dec 18, 2019

Thanks!

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

Successfully merging this pull request may close these issues.

TMX Format doc: explicitly say which attributes and children are required
2 participants