Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Always try to add a default @type and @language #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rknLA
Copy link

@rknLA rknLA commented Jul 18, 2017

Fixes #59

In cases where @type was set, but not @language, one or the other would end up being an empty dictionary.

I have not run any tests on this, or added test cases, so that might need to be addressed before merging.

In cases where @type was set, but not @language, one or the other would
end up being an empty dictionary
entry['@language'].setdefault('@none', term)
# add entries for no type and no language
entry['@type'].setdefault('@none', term)
entry['@language'].setdefault('@none', term)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know but I am concerned about verbosity of the resulting document. What do you think about this?

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

Successfully merging this pull request may close these issues.

2 participants