SimpleIDML 1.1.6a2__tar.gz → 1.1.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. {SimpleIDML-1.1.6a2/src/SimpleIDML.egg-info → SimpleIDML-1.1.8}/PKG-INFO +11 -1
  2. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/README.rst +10 -0
  3. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/setup.py +1 -1
  4. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8/src/SimpleIDML.egg-info}/PKG-INFO +11 -1
  5. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/__init__.py +1 -1
  6. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/components.py +9 -1
  7. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/idml.py +5 -2
  8. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/AUTHORS +0 -0
  9. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/LICENSE +0 -0
  10. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/MANIFEST.in +0 -0
  11. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/setup.cfg +0 -0
  12. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/SimpleIDML.egg-info/SOURCES.txt +0 -0
  13. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/SimpleIDML.egg-info/dependency_links.txt +0 -0
  14. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/SimpleIDML.egg-info/requires.txt +0 -0
  15. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/SimpleIDML.egg-info/top_level.txt +0 -0
  16. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/scripts/simpleidml_create_package_from_dir.py +0 -0
  17. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/scripts/simpleidml_indesign_close_all_documents.py +0 -0
  18. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/scripts/simpleidml_indesign_save_as.py +0 -0
  19. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/commands.py +0 -0
  20. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/decorators.py +0 -0
  21. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/exceptions.py +0 -0
  22. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/extras.py +0 -0
  23. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/ftp.py +0 -0
  24. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/id_package.py +0 -0
  25. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/indesign/__init__.py +0 -0
  26. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/indesign/indesign.py +0 -0
  27. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/indesign/scripts/close_all_documents.jsx +0 -0
  28. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/indesign/scripts/export.jsx +0 -0
  29. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/indesign/scripts/list_profiles.jsx +0 -0
  30. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/indesign/scripts/package_to_print.jsx +0 -0
  31. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/indesign/scripts/save_as.jsx +0 -0
  32. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/test.py +0 -0
  33. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/src/simple_idml/utils.py +0 -0
  34. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/Makefile +0 -0
  35. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/coveragerc +0 -0
  36. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/2articles-0photo.idml +0 -0
  37. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/2articles-0photo.indd +0 -0
  38. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/2articles-1photo-elts-same-layer.idml +0 -0
  39. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/2articles-1photo-elts-same-layer.indd +0 -0
  40. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/2articles-1photo.idml +0 -0
  41. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/2articles-1photo.indd +0 -0
  42. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/4-pages-layers-with-guides.idml +0 -0
  43. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/4-pages-layers-with-guides.indd +0 -0
  44. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/4-pages.idml +0 -0
  45. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/4-pages.indd +0 -0
  46. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/META-INF/container.xml +0 -0
  47. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/META-INF/metadata.xml +0 -0
  48. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/MasterSpreads/MasterSpread_ua5.xml +0 -0
  49. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/Resources/Fonts.xml +0 -0
  50. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/Resources/Graphic.xml +0 -0
  51. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/Resources/Preferences.xml +0 -0
  52. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/Resources/Styles.xml +0 -0
  53. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/Spreads/Spread_ud6.xml +0 -0
  54. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/Stories/Story_u188.xml +0 -0
  55. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/Stories/Story_u19f.xml +0 -0
  56. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/Stories/Story_u1db.xml +0 -0
  57. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/XML/BackingStory.xml +0 -0
  58. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/XML/Mapping.xml +0 -0
  59. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/XML/Tags.xml +0 -0
  60. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/designmap.xml +0 -0
  61. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo/mimetype +0 -0
  62. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo-package.zip +0 -0
  63. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo-with-attributes.idml +0 -0
  64. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo-with-attributes.indd +0 -0
  65. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo.idml +0 -0
  66. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo.indd +0 -0
  67. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo_import-xml.idml +0 -0
  68. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo_import-xml.indd +0 -0
  69. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo_imported-nested-xml.idml +0 -0
  70. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo_imported-nested-xml.indd +0 -0
  71. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo_imported-xml.idml +0 -0
  72. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/article-1photo_imported-xml.indd +0 -0
  73. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/4-pages-insert-article-0-photo-complex.idml +0 -0
  74. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/4-pages-insert-article-1-photo-complex.idml +0 -0
  75. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/4-pages-insert-article-1-photo-elts-same-layer.idml +0 -0
  76. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/4-pages-insert-article-1-photo.idml +0 -0
  77. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/article-1photo_import-xml-forcecontent.idml +0 -0
  78. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/article-1photo_import-xml-forcecontent2.idml +0 -0
  79. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/article-1photo_import-xml-forcecontent3.idml +0 -0
  80. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/article-1photo_import-xml-ignorecontent.idml +0 -0
  81. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/article-1photo_import-xml-nested-tags.idml +0 -0
  82. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/article-1photo_import-xml-with-extra-nodes.idml +0 -0
  83. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/article-1photo_import-xml-with-extra-nodes2-prefixed.idml +0 -0
  84. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/article-1photo_import-xml-with-extra-nodes2.idml +0 -0
  85. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/article-1photo_import-xml-with-setcontent-false.idml +0 -0
  86. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/article-1photo_import-xml-without-picture.idml +0 -0
  87. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/expected/article-1photo_import-xml.idml +0 -0
  88. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/magazineA-bloc-notes.idml +0 -0
  89. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/magazineA-bloc-notes.indd +0 -0
  90. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/magazineA-courrier-des-lecteurs-3pages.idml +0 -0
  91. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/magazineA-courrier-des-lecteurs-3pages.indd +0 -0
  92. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/magazineA-courrier-des-lecteurs.idml +0 -0
  93. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/magazineA-courrier-des-lecteurs.indd +0 -0
  94. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/magazineA-edito.idml +0 -0
  95. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/magazineA-edito.indd +0 -0
  96. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/magazineA-template.idml +0 -0
  97. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/media/Jacques-Yves_Cousteau.jpg +0 -0
  98. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/media/bouboune.jpg +0 -0
  99. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/media/default.jpg +0 -0
  100. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/media/default2.jpg +0 -0
  101. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/module1.pdf +0 -0
  102. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/package-pirate.zip +0 -0
  103. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/page-9modules.idml +0 -0
  104. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/IDML/page-9modules.indd +0 -0
  105. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/SOAP/indesign-service.xml +0 -0
  106. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/XML/article-1photo_import-xml-forcecontent.xml +0 -0
  107. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/XML/article-1photo_import-xml-forcecontent2.xml +0 -0
  108. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/XML/article-1photo_import-xml-forcecontent3.xml +0 -0
  109. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/XML/article-1photo_import-xml-ignorecontent.xml +0 -0
  110. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/XML/article-1photo_import-xml-nested-tags.xml +0 -0
  111. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/XML/article-1photo_import-xml-with-extra-nodes.xml +0 -0
  112. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/XML/article-1photo_import-xml-with-extra-nodes2.xml +0 -0
  113. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/XML/article-1photo_import-xml-with-setcontent-delete-informations.xml +0 -0
  114. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/XML/article-1photo_import-xml-with-setcontent-delete.xml +0 -0
  115. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/XML/article-1photo_import-xml-with-setcontent-false.xml +0 -0
  116. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/XML/article-1photo_import-xml-with-setcontent-remove-br.xml +0 -0
  117. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/XML/article-1photo_import-xml-without-picture.xml +0 -0
  118. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/XML/article-1photo_import-xml.xml +0 -0
  119. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/__init__.py +0 -0
  120. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/components.py +0 -0
  121. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/extras.py +0 -0
  122. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/id_package.py +0 -0
  123. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/idml.py +0 -0
  124. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/indesign.py +0 -0
  125. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/regressiontests/utils.py +0 -0
  126. {SimpleIDML-1.1.6a2 → SimpleIDML-1.1.8}/tests/runtests.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: SimpleIDML
3
- Version: 1.1.6a2
3
+ Version: 1.1.8
4
4
  Summary: A library to manipulate Adobe(r) IDML(r) files.
5
5
  Home-page: https://github.com/Starou/SimpleIDML
6
6
  Author: Stanislas Guerra
@@ -467,6 +467,16 @@ Description: ==========
467
467
  Revisions
468
468
  =========
469
469
 
470
+ 1.1.8
471
+ -----
472
+
473
+ - Bugfix (issue #73).
474
+
475
+ 1.1.7
476
+ -----
477
+
478
+ - Manage border color in styles when composing documents.
479
+
470
480
  1.1.5
471
481
  -----
472
482
 
@@ -457,6 +457,16 @@ installed in your PATH.
457
457
  Revisions
458
458
  =========
459
459
 
460
+ 1.1.8
461
+ -----
462
+
463
+ - Bugfix (issue #73).
464
+
465
+ 1.1.7
466
+ -----
467
+
468
+ - Manage border color in styles when composing documents.
469
+
460
470
  1.1.5
461
471
  -----
462
472
 
@@ -9,7 +9,7 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
9
9
 
10
10
  setup(
11
11
  name="SimpleIDML",
12
- version="1.1.6a2",
12
+ version="1.1.8",
13
13
  license='BSD Licence',
14
14
  author='Stanislas Guerra',
15
15
  author_email='stanislas.guerra@gmail.com',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: SimpleIDML
3
- Version: 1.1.6a2
3
+ Version: 1.1.8
4
4
  Summary: A library to manipulate Adobe(r) IDML(r) files.
5
5
  Home-page: https://github.com/Starou/SimpleIDML
6
6
  Author: Stanislas Guerra
@@ -467,6 +467,16 @@ Description: ==========
467
467
  Revisions
468
468
  =========
469
469
 
470
+ 1.1.8
471
+ -----
472
+
473
+ - Bugfix (issue #73).
474
+
475
+ 1.1.7
476
+ -----
477
+
478
+ - Manage border color in styles when composing documents.
479
+
470
480
  1.1.5
471
481
  -----
472
482
 
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- VERSION = "1.1.6a2"
3
+ VERSION = "1.1.8"
4
4
  IdPkgNS = "http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging"
5
5
  BACKINGSTORY = "XML/BackingStory.xml"
6
6
 
@@ -51,6 +51,10 @@ class IDMLXMLFile():
51
51
  "NextTextFrame",
52
52
  "PreviousTextFrame",
53
53
  )
54
+ prefixable_content_tags = (
55
+ 'ParagraphShadingColor',
56
+ 'ParagraphBorderColor',
57
+ )
54
58
 
55
59
  def __init__(self, idml_package, working_copy_path=None):
56
60
  self.idml_package = idml_package
@@ -141,6 +145,8 @@ class IDMLXMLFile():
141
145
  for elt in self.dom.iter():
142
146
  if elt.tag in self.excluded_tags_for_prefix:
143
147
  continue
148
+ if elt.tag in self.prefixable_content_tags and elt.text:
149
+ elt.text = f"{prefix}{elt.text}"
144
150
  for attr in self.prefixable_attrs:
145
151
  if elt.get(attr):
146
152
  if attr in ['NextTextFrame', 'PreviousTextFrame'] and elt.get(attr) == 'n':
@@ -900,13 +906,15 @@ class XMLElement(Proxy):
900
906
  "Ligatures",
901
907
  "OTFContextualAlternate",
902
908
  "BaselineShift",
909
+ "ParagraphShadingColor",
910
+ "ParagraphBorderColor",
903
911
  ]
904
912
 
905
913
  for attr in attrs:
906
914
  if style_node.get(attr) is not None:
907
915
  style_range_node.set(attr, style_node.get(attr))
908
916
 
909
- for attr in ("Leading", "AppliedFont"):
917
+ for attr in ("Leading", "AppliedFont", "ParagraphShadingColor", "ParagraphBorderColor"):
910
918
  path = f"Properties/{attr}"
911
919
  attr_node = style_node.find(path)
912
920
  if attr_node is not None:
@@ -334,7 +334,7 @@ class IDMLPackage(zipfile.ZipFile):
334
334
  if parent_style_node.get(attr) is not None and (applied_style_node is None or not applied_style_node.get(attr)):
335
335
  style_range_node.set(attr, parent_style_node.get(attr))
336
336
 
337
- for attr in ("Leading", "AppliedFont"):
337
+ for attr in ("Leading", "AppliedFont", "ParagraphShadingColor", "ParagraphBorderColor"):
338
338
  path = f"Properties/{attr}"
339
339
  parent_attr_node = parent_style_node.find(path)
340
340
  attr_node = applied_style_node.find(path) is not None if applied_style_node is not None else None
@@ -358,7 +358,10 @@ class IDMLPackage(zipfile.ZipFile):
358
358
  return
359
359
 
360
360
  for sibling in siblings:
361
- last_content_node.addnext(sibling)
361
+ try:
362
+ last_content_node.addnext(sibling)
363
+ except ValueError: # "cannot add ancestor as sibling, please break cycle first"
364
+ pass
362
365
  story.synchronize()
363
366
 
364
367
  def _import_new_node(source_node, at=None, element_id=None, story=None):
File without changes
File without changes
File without changes
File without changes
File without changes