unified-font-object / ufoNormalizer

A tool that will normalize the XML and other data inside of a UFO.
Other
51 stars 19 forks source link

Keep required plist files even if empty #28

Closed anthrotype closed 8 years ago

anthrotype commented 8 years ago

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.

coveralls commented 8 years ago

Coverage Status

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