diff --git a/README.rst b/README.rst index ff209e5..f9f55ca 100644 --- a/README.rst +++ b/README.rst @@ -459,6 +459,11 @@ installed in your PATH. Revisions ========= +1.3.2 +----- + +- Fix Gradient Color lost when prefixing document. + 1.2.0 ----- diff --git a/setup.py b/setup.py index ca959bd..5005af1 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ setup( name="simpleidml", - version="1.3.1", + version="1.3.2a", license='BSD Licence', author='Stanislas Guerra', author_email='stanislas.guerra@gmail.com', diff --git a/src/simple_idml/__init__.py b/src/simple_idml/__init__.py index e9a7a96..a8763a2 100644 --- a/src/simple_idml/__init__.py +++ b/src/simple_idml/__init__.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -VERSION = "1.3.1" +VERSION = "1.3.2a" IdPkgNS = "http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging" BACKINGSTORY = "XML/BackingStory.xml" diff --git a/src/simple_idml/components.py b/src/simple_idml/components.py index fe4e18f..c7e428f 100644 --- a/src/simple_idml/components.py +++ b/src/simple_idml/components.py @@ -47,6 +47,7 @@ class IDMLXMLFile(): "NextStyle", "FillColor", "StrokeColor", + "StopColor", "ItemLayer", "NextTextFrame", "PreviousTextFrame", diff --git a/tests/regressiontests/idml.py b/tests/regressiontests/idml.py index a6bf7ce..bd85d5d 100644 --- a/tests/regressiontests/idml.py +++ b/tests/regressiontests/idml.py @@ -885,6 +885,11 @@ def test_prefix(self): # Layer(s) self.assertEqual(prefixed_f.get_active_layer_name(), "Layer 1") + # Graphic.xml + with prefixed_f.open("Resources/Graphic.xml") as f: + graphic = etree.fromstring(f.read()) + self.assertEqual(graphic.xpath('Gradient/GradientStop')[0].get('StopColor'), 'FOOColor/u81') + # Prefixing a file with a Style / XML tag mapping. shutil.copy2(os.path.join(IDMLFILES_DIR, "article-1photo_import-xml.idml"), os.path.join(OUTPUT_DIR, "article-1photo_import-xml-prefixed.idml"))