Fix 'Section' object has no attribute '_element' in create_transcript_docx
Mirror and run GitLab CI / build (push) Has been cancelled
Ruff / ruff (push) Has been cancelled

This commit is contained in:
ScrAIbe Admin
2026-06-14 17:51:54 +00:00
parent 50c7ec90a0
commit eb9b2f9126
+1 -1
View File
@@ -303,7 +303,7 @@ def create_transcript_docx(text: str, filename: str):
section.bottom_margin = Inches(1.0) section.bottom_margin = Inches(1.0)
# Enable continuous line numbering on the left # Enable continuous line numbering on the left
sectPr = section._element sectPr = section._sectPr
lnNumType = sectPr.find(qn("w:lnNumType")) lnNumType = sectPr.find(qn("w:lnNumType"))
if lnNumType is None: if lnNumType is None:
lnNumType = OxmlElement("w:lnNumType") lnNumType = OxmlElement("w:lnNumType")