Skip to content

Commit

Permalink
Merge pull request #650 from euphorie/scrum-1295-refactor-loop
Browse files Browse the repository at this point in the history
Factored out unnecessary loop.
  • Loading branch information
ale-rt authored Oct 11, 2023
2 parents 2f95f3f + dc7c980 commit 5fe3331
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/euphorie/client/docx/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,11 +784,11 @@ def merge_module_rows(self, row_module, row_risk):
Also remove the horizontal borders between the not merged cells.
"""
for idx in range(1):
first_cell = row_module.cells[idx]
last_cell = row_risk.cells[idx]
self.set_cell_border(last_cell)
first_cell.merge(last_cell)
idx = 0
first_cell = row_module.cells[idx]
last_cell = row_risk.cells[idx]
self.set_cell_border(last_cell)
first_cell.merge(last_cell)
for idx, cell in enumerate(row_risk.cells[1:]):
self.set_cell_border(cell, settings=LEFT_RIGHT_BORDERS)

Expand Down

0 comments on commit 5fe3331

Please sign in to comment.