Skip to content

Commit

Permalink
Matrix.str: New parameters top_border, bottom_border, left_border, ri…
Browse files Browse the repository at this point in the history
…ght_border (fixup)
  • Loading branch information
Matthias Koeppe committed Mar 26, 2024
1 parent 18d7e97 commit 9ced71d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/sage/matrix/matrix0.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1931,11 +1931,11 @@ cdef class Matrix(sage.structure.element.Matrix):
....: bottom_border=['*', '', ''],
....: left_border=[1, 10, 100],
....: right_border=['', ' <', '']))
ab cde f
ab⎛ 1 2│ 3⎞
cde⎜ 4 5│ 6⎟ <
f⎝ 7 8│ 9⎠
*
ab cde f
1⎛ 1 2│ 3⎞
10⎜ 4 5│ 6⎟ <
100⎝ 7 8│ 9⎠
*
TESTS:
Expand Down Expand Up @@ -2121,7 +2121,7 @@ cdef class Matrix(sage.structure.element.Matrix):
rows.extend([hline] * n)
right.extend([""] * n)
if top_border is not None and 0 <= r < nr:
left.append(str(top_border[r]))
left.append(str(left_border[r]))
else:
left.append("")
s = ""
Expand Down

0 comments on commit 9ced71d

Please sign in to comment.