continued fix #345
This commit is contained in:
parent
8d512d2edd
commit
6b41cc2579
@ -360,6 +360,7 @@ class DocxTemplate(object):
|
|||||||
ids.append(id)
|
ids.append(id)
|
||||||
else:
|
else:
|
||||||
docPr.set('id', str(int(id)+amount))
|
docPr.set('id', str(int(id)+amount))
|
||||||
|
amount += 1000
|
||||||
elif alternative is not None:
|
elif alternative is not None:
|
||||||
choice = alternative.find(mc+'Choice')
|
choice = alternative.find(mc+'Choice')
|
||||||
drawing = choice.find(ns+'drawing')
|
drawing = choice.find(ns+'drawing')
|
||||||
@ -372,6 +373,7 @@ class DocxTemplate(object):
|
|||||||
ids.append(id)
|
ids.append(id)
|
||||||
else:
|
else:
|
||||||
docPr.set('id', str(int(id)+amount))
|
docPr.set('id', str(int(id)+amount))
|
||||||
|
amount += 1000
|
||||||
elif inline is not None:
|
elif inline is not None:
|
||||||
docPr = inline.find(nsp+'docPr')
|
docPr = inline.find(nsp+'docPr')
|
||||||
id = docPr.attrib['id']
|
id = docPr.attrib['id']
|
||||||
@ -379,6 +381,7 @@ class DocxTemplate(object):
|
|||||||
ids.append(id)
|
ids.append(id)
|
||||||
else:
|
else:
|
||||||
docPr.set('id', str(int(id)+amount))
|
docPr.set('id', str(int(id)+amount))
|
||||||
|
amount += 1000
|
||||||
return tree
|
return tree
|
||||||
|
|
||||||
# using of TC tag in for cycle can cause that count of columns does not
|
# using of TC tag in for cycle can cause that count of columns does not
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user