Fix 'Section' object has no attribute '_element' in create_transcript_docx
This commit is contained in:
@@ -303,7 +303,7 @@ def create_transcript_docx(text: str, filename: str):
|
||||
section.bottom_margin = Inches(1.0)
|
||||
|
||||
# Enable continuous line numbering on the left
|
||||
sectPr = section._element
|
||||
sectPr = section._sectPr
|
||||
lnNumType = sectPr.find(qn("w:lnNumType"))
|
||||
if lnNumType is None:
|
||||
lnNumType = OxmlElement("w:lnNumType")
|
||||
|
||||
Reference in New Issue
Block a user