We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea0a9da commit 4138aa6Copy full SHA for 4138aa6
src/sage/matrix/matrix0.pyx
@@ -2156,7 +2156,7 @@ cdef class Matrix(sage.structure.element.Matrix):
2156
left.extend([""] * n)
2157
rows.extend([hline] * n)
2158
right.extend([""] * n)
2159
- if top_border is not None and 0 <= r < nr:
+ if left_border is not None and 0 <= r < nr:
2160
left.append(str(left_border[r]))
2161
else:
2162
left.append("")
@@ -2180,7 +2180,7 @@ cdef class Matrix(sage.structure.element.Matrix):
2180
2181
s = s + " " * col_div_counts[nc]
2182
rows.append(s)
2183
- if bottom_border is not None and 0 <= r < nr:
+ if right_border is not None and 0 <= r < nr:
2184
right.append(str(right_border[r]))
2185
2186
right.append("")
0 commit comments