Don't write default transformation values.

git-svn-id: http://svn.robofab.com/branches/ufo3k@353 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
This commit is contained in:
Tal Leming 2011-09-30 19:24:10 +00:00
parent 2bcdd6b4ba
commit 3c9d93bbe4

View File

@ -583,7 +583,8 @@ def _writeImage(glyphObject, writer):
]
for attr, default in _transformationInfo:
value = image.get(attr, default)
attrs.append((attr, str(value)))
if value != default:
attrs.append((attr, str(value)))
color = image.get("color")
if color is not None:
attrs.append(("color", color))