You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia> using PrettyTables
table = Dict(
:x => ["totally not an a"],
:xx => [AnsiTextCell("a")],
)
pretty_table(stdout, table; show_row_number = true)
┌─────┬──────────────┬──────────────────┐
│ Row │ xx │ x │
│ │ AnsiTextCell │ String │
├─────┼──────────────┼──────────────────┤
│ 1 │ a │ a │
└─────┴──────────────┴──────────────────┘
Note how the second cell should not say a, it should say totally not an a. Also note how this is somewhat Dict-key-ordering-sensitive; if the AnsiTextCell comes as the last column, everything looks fine:
julia> using PrettyTables
table = Dict(
:xx => ["totally not an a"],
:x => AnsiTextCell[AnsiTextCell("a")],
)
pretty_table(stdout, table; show_row_number = true)
┌─────┬──────────────────┬──────────────┐
│ Row │ xx │ x │
│ │ String │ AnsiTextCell │
├─────┼──────────────────┼──────────────┤
│ 1 │ totally not an a │ a │
└─────┴──────────────────┴──────────────┘
The text was updated successfully, but these errors were encountered:
Example:
Note how the second cell should not say
a
, it should saytotally not an a
. Also note how this is somewhatDict
-key-ordering-sensitive; if theAnsiTextCell
comes as the last column, everything looks fine:The text was updated successfully, but these errors were encountered: