Closed joschmitt closed 8 months ago
Good catch, this looks wrong
I have no problem with changing the behaviour.
But why is this wrong?
The first example above (mat = [ "1" "2" "3" ; "4" "5" "" ]
) also produces an empty line at the end.
I would say that the two empty lines at the end of the character_table(G)
output should better be just one empty line.
I can fix this in the relevant show
method for character tables.
The reason for the double newline is that the footer of the table (which is separated from the table by a newline) is empty.
In my opinion, labelled_matrix_formatted
should not produce a newline at the end because show
apparently (?) always adds one. This is why there are TWO newlines after a character table.
Overwriting the show
of a matrix of strings
julia> function Base.show(io::IO, ::MIME"text/plain", mat::Matrix{String})
labelled_matrix_formatted(io, mat)
end
results in
julia> mat = [ "1" "2" "3" ; "4" "5" "" ]
1 2 3
4 5
julia>
(So again two newlines.)
When fiddling around with the three shows of OSCAR, we found out the following (no idea where to find the ref):
\n
character Thanks. I have approved #3213.
Describe the bug I played around with
labelled_matrix_formatted
for the printing of Young tableaux and got the impression that it always produces an additional newline at the end.To Reproduce
System (please complete the following information):
Additional context I can probably fix this myself, I just wanted to make sure we agree that this is not the desired behaviour. (Other than that I'm a huge fan of this function already now!)