Skip to content

Commit

Permalink
Fix referenced before assignment regression introduced with #121. (#…
Browse files Browse the repository at this point in the history
…125)

Co-authored-by: Eric Patey <>
  • Loading branch information
epatey authored Feb 5, 2025
1 parent 983283a commit 3ee6c34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions desktop_env/evaluators/metrics/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def contains_page_break(docx_file, rules):

namespaces = {'w': 'http://schemas.openxmlformats.org/wordprocessingml/2006/main'}

page_break_count = 0
for paragraph in doc.paragraphs:
for run in paragraph.runs:
br_elems = run.element.findall('.//w:br', namespaces)
Expand Down

0 comments on commit 3ee6c34

Please sign in to comment.