From 3c9d93bbe4b9e5d26470fa61d5092a8c5f086842 Mon Sep 17 00:00:00 2001 From: Tal Leming Date: Fri, 30 Sep 2011 19:24:10 +0000 Subject: [PATCH] Don't write default transformation values. git-svn-id: http://svn.robofab.com/branches/ufo3k@353 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c --- Lib/ufoLib/glifLib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/ufoLib/glifLib.py b/Lib/ufoLib/glifLib.py index bda453825..d757bded8 100755 --- a/Lib/ufoLib/glifLib.py +++ b/Lib/ufoLib/glifLib.py @@ -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))