Skip to content

Commit

Permalink
Remove some trailing newlines from show methods (thofma#1363)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgoettgens authored Jan 24, 2024
1 parent 32f4359 commit b2472e9
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/AlgAssAbsOrd/Ideal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1466,7 +1466,7 @@ numerator(a::AlgAssAbsOrdIdl; copy::Bool = true) = numerator(a, order(a), copy =
################################################################################

function show(io::IO, a::AlgAssAbsOrdIdlSet)
print(io, "Set of ideals of $(order(a))\n")
print(io, "Set of ideals of $(order(a))")
end

order(a::AlgAssAbsOrdIdlSet) = a.order
Expand Down
2 changes: 1 addition & 1 deletion src/Grp/GenGrp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ function Base.show(io::IO, G::GrpGen)
end

function Base.show(io::IO, g::GrpGenElem)
print(io, "($(g.i))\n")
print(io, "($(g.i))")
end

################################################################################
Expand Down
2 changes: 1 addition & 1 deletion src/GrpAb/Lattice.jl
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ end
function Base.show(io::IO, L::RelLattice{T, D}) where {T, D}
print("Relation lattice for $T with underlying graph \n$(L.graph)\n")
print("In weak dict: $(length(L.weak_vertices))\n")
print("In dict: $(length(L.block_gc))\n")
print("In dict: $(length(L.block_gc))")
end

# The finalizer, which must be attached to a every group in the lattice.
Expand Down
1 change: 0 additions & 1 deletion src/Misc/Integer.jl
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,6 @@ function Base.show(io::IO, D::Divisors)
if isdefined(D, :U)
print(io, " times $(D.U)")
end
print(io, "\n")
end

@doc raw"""
Expand Down
1 change: 0 additions & 1 deletion src/NumFieldOrd/NfOrd/Ideal/Ideal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ end
function show(io::IO, a::NfAbsOrdIdlSet)
print(io, "Set of ideals of ")
show(Base.IOContext(io, :compact => true), order(a))
print(io, "\n")
end

function show(io::IO, a::NfAbsOrdIdl)
Expand Down
2 changes: 1 addition & 1 deletion src/NumFieldOrd/NfOrd/Unit/UnitGrpCtx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ nf(u::UnitGrpCtx) = nf(order(u))
################################################################################

function show(io::IO, U::UnitGrpCtx)
print(io, "Unit group context of\n$(order(U))\n")
print(io, "Unit group context of\n$(order(U))")
end

################################################################################
Expand Down
8 changes: 4 additions & 4 deletions src/Sparse/Module.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ add_assertion_scope(:HNF)


function show(io::IO, M::ModuleCtxNmod)
print(io, "Sparse module over $(M.R) of (current) rank $(nrows(M.basis)) and $(nrows(M.gens))\n")
print(io, "Sparse module over $(M.R) of (current) rank $(nrows(M.basis)) and $(nrows(M.gens))")
end

function show(io::IO, M::ModuleCtx_fmpz)
print(io, "Sparse module over FlintZZ of (current) rank $(nrows(M.bas_gens)) and further $(nrows(M.rel_gens))\n")
print(io, "Sparse module over FlintZZ of (current) rank $(nrows(M.bas_gens)) and further $(nrows(M.rel_gens))")
if isdefined(M, :basis_idx)
print(io, "current index: $(M.basis_idx)\n")
print(io, "\ncurrent index: $(M.basis_idx)")
end
if isdefined(M, :essential_elementary_divisors)
print(io, "current structure: $(M.essential_elementary_divisors)\n")
print(io, "\ncurrent structure: $(M.essential_elementary_divisors)")
end
end

Expand Down

0 comments on commit b2472e9

Please sign in to comment.