Skip to content

Commit

Permalink
Matrix.str: Fix handling of left_border, right_border
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Mar 29, 2024
1 parent 4d01251 commit 643c873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/matrix/matrix0.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -2156,7 +2156,7 @@ cdef class Matrix(sage.structure.element.Matrix):
left.extend([""] * n)
rows.extend([hline] * n)
right.extend([""] * n)
if top_border is not None and 0 <= r < nr:
if left_border is not None and 0 <= r < nr:
left.append(str(left_border[r]))
else:
left.append("")
Expand All @@ -2180,7 +2180,7 @@ cdef class Matrix(sage.structure.element.Matrix):
else:
s = s + " " * col_div_counts[nc]
rows.append(s)
if bottom_border is not None and 0 <= r < nr:
if right_border is not None and 0 <= r < nr:
right.append(str(right_border[r]))
else:
right.append("")
Expand Down

0 comments on commit 643c873

Please sign in to comment.