Co-authored-by: Eric Patey <>
This commit is contained in:
@@ -64,6 +64,7 @@ def contains_page_break(docx_file, rules):
|
|||||||
|
|
||||||
namespaces = {'w': 'http://schemas.openxmlformats.org/wordprocessingml/2006/main'}
|
namespaces = {'w': 'http://schemas.openxmlformats.org/wordprocessingml/2006/main'}
|
||||||
|
|
||||||
|
page_break_count = 0
|
||||||
for paragraph in doc.paragraphs:
|
for paragraph in doc.paragraphs:
|
||||||
for run in paragraph.runs:
|
for run in paragraph.runs:
|
||||||
br_elems = run.element.findall('.//w:br', namespaces)
|
br_elems = run.element.findall('.//w:br', namespaces)
|
||||||
|
|||||||
Reference in New Issue
Block a user