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

Keep required plist files even if empty #28

Merged

Conversation

anthrotype
Copy link
Member

The _normalizePlistFile function currently deletes any plist files which happen to be empty, including files which are required by the UFO specification like contents.plist or layercontents.plist.

This adds a 'removeEmpty' keyword argument to _normalizePlistFile (default is True) and set it to False whenever the empty plist file should be kept nonetheless.

Cosimo Lupo added 2 commits April 6, 2016 12:49
I added a 'removeEmpty' keyword argument to `_normalizePlistFile` (default
is `True`), and set it to False for "metainfo.plist", "glyphs/contents.plist",
and "layercontents.plist" (UFO3). These plist files are required by to the
specification, and should be kept even if they happen to be empty.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.2%) to 91.133% when pulling deef98a on daltonmaag:keep-empty-required-plist into fc9311c on unified-font-object:master.

@typesupply typesupply merged commit 58ab51f into unified-font-object:master Apr 6, 2016
@anthrotype anthrotype deleted the keep-empty-required-plist branch April 8, 2016 08:09
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.

None yet

3 participants