Skip to content

Commit

Permalink
Update Mpoly printing
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens committed Feb 1, 2024
1 parent f35fc22 commit 9ad5e1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MPoly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,8 @@ end
@enable_all_show_via_expressify MPolyRingElem

function show(io::IO, ::MIME"text/plain", p::MPolyRing)
@show_name(io, p)
@show_special(io, p)
max_vars = 5 # largest number of variables to print
n = nvars(p)
print(io, "Multivariate polynomial ring")
Expand All @@ -577,6 +579,8 @@ function show(io::IO, ::MIME"text/plain", p::MPolyRing)
end

function show(io::IO, p::MPolyRing)
@show_name(io, p)
@show_special(io, p)
if get(io, :supercompact, false)
# no nested printing
print(io, "Multivariate polynomial ring")
Expand Down

0 comments on commit 9ad5e1f

Please sign in to comment.