Skip to content

Commit

Permalink
Merge pull request #68 from Starou/ticket_67_linked_texts
Browse files Browse the repository at this point in the history
Ticket 67 linked texts
  • Loading branch information
Starou committed Oct 26, 2023
2 parents f6b8903 + 332cfd4 commit 3c38b38
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="SimpleIDML",
version="1.1.5",
version="1.1.6",
license='BSD Licence',
author='Stanislas Guerra',
author_email='stanislas.guerra@gmail.com',
Expand Down
2 changes: 1 addition & 1 deletion src/simple_idml/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

VERSION = "1.1.5"
VERSION = "1.1.6"
IdPkgNS = "http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging"
BACKINGSTORY = "XML/BackingStory.xml"

Expand Down
4 changes: 4 additions & 0 deletions src/simple_idml/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class IDMLXMLFile():
"FillColor",
"StrokeColor",
"ItemLayer",
"NextTextFrame",
"PreviousTextFrame",
)

def __init__(self, idml_package, working_copy_path=None):
Expand Down Expand Up @@ -141,6 +143,8 @@ def prefix_references(self, prefix):
continue
for attr in self.prefixable_attrs:
if elt.get(attr):
if attr in ['NextTextFrame', 'PreviousTextFrame'] and elt.get(attr) == 'n':
continue
elt.set(attr, f"{prefix}{elt.get(attr)}")

# <idPkg:Spread src="Spreads/Spread_ub6.xml"/>
Expand Down

0 comments on commit 3c38b38

Please sign in to comment.