Skip to content

Commit a41964c

Browse files
committed
Update for new PrettyTables
1 parent 9cb1be4 commit a41964c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SimplexTableaux"
22
uuid = "b49aa546-d643-4829-bb91-bc1e5e539d80"
33
authors = ["Ed Scheinerman <ers@jhu.edu>"]
4-
version = "0.2.0"
4+
version = "0.2.1"
55

66
[deps]
77
ChooseOptimizer = "858a232f-1959-5553-8cfc-91e1fd5304e2"
@@ -22,6 +22,6 @@ JuMP = "1"
2222
LatexPrint = "1"
2323
LinearAlgebra = "1"
2424
LinearAlgebraX = "0.2"
25-
PrettyTables = "2"
25+
PrettyTables = "2, 3"
2626
Test = "1"
2727
julia = "1"

src/Pretty.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@ end
7070
function show(io::IO, T::Tableau)
7171
MM = _pretty_string.(T.M[2:end, :])
7272
MM = hcat(_left_column(T), MM)
73-
pretty_table(MM; header=_header(T), header_crayon=_header_colors(T))
73+
style = TextTableStyle(first_line_column_label = _header_colors(T));
74+
pretty_table(MM; column_labels= [_header1(T), _header2(T)], style=style)
7475
end

0 commit comments

Comments
 (0)