Skip to content

Commit 54433cb

Browse files
author
Hien Hoang
committed
fix num_style has no pPr
1 parent a706c29 commit 54433cb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/simplify_docx/utils/paragrapy_style.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def get_paragraph_ind(p, doc):
5353

5454
num_style = get_num_style(p, doc)
5555
if num_style is not None and \
56+
getattr(num_style, "pPr", None) is not None and \
5657
num_style.pPr is not None and \
5758
num_style.pPr.ind is not None:
5859
return num_style.pPr.ind

0 commit comments

Comments
 (0)