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

Do not write empty keys #89

Merged

Conversation

frankrolf
Copy link
Contributor

This adds two if-conditions to check if layer-lib keys are empty.

  • in the lib of every layerinfo.plist, write the org.unifiedfontobject.normalizer.imageReferences dict only if there are images in the UFO
  • consequently, only write the lib in layerinfo.plist if it does contain anything at all

Fixes #60

This adds two if-conditions to check if layer-lib keys are empty.

- in the lib of every `layerinfo.plist`, write the `org.unifiedfontobject.normalizer.imageReferences` dict only if there are images in the UFO
- consequently, only write the lib in `layerinfo.plist` if it does contain anything at all
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 87.657% when pulling 45e54ee on frankrolf:do_not_write_empty_data into f28ef21 on unified-font-object:master.

@benkiel benkiel merged commit 2d4c06c into unified-font-object:master Sep 10, 2021
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.

imageReferences key
3 participants