From 258e04eda82641f3de986ab1af3cdc2f34229148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20G=C3=B6ttgens?= Date: Wed, 24 Jan 2024 14:33:03 +0100 Subject: [PATCH] Remove some trailing newlines from show methods --- src/AlgAssAbsOrd/Ideal.jl | 2 +- src/Grp/GenGrp.jl | 2 +- src/GrpAb/Lattice.jl | 2 +- src/Misc/Integer.jl | 1 - src/NumFieldOrd/NfOrd/Ideal/Ideal.jl | 1 - src/NumFieldOrd/NfOrd/Unit/UnitGrpCtx.jl | 2 +- src/Sparse/Module.jl | 8 ++++---- 7 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/AlgAssAbsOrd/Ideal.jl b/src/AlgAssAbsOrd/Ideal.jl index 5731cc2f2f..624d4b23c8 100644 --- a/src/AlgAssAbsOrd/Ideal.jl +++ b/src/AlgAssAbsOrd/Ideal.jl @@ -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 diff --git a/src/Grp/GenGrp.jl b/src/Grp/GenGrp.jl index 4029e930e3..f8395a91b5 100644 --- a/src/Grp/GenGrp.jl +++ b/src/Grp/GenGrp.jl @@ -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 ################################################################################ diff --git a/src/GrpAb/Lattice.jl b/src/GrpAb/Lattice.jl index 6a1813d090..53d153b852 100644 --- a/src/GrpAb/Lattice.jl +++ b/src/GrpAb/Lattice.jl @@ -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. diff --git a/src/Misc/Integer.jl b/src/Misc/Integer.jl index d5df488a49..8093accd2a 100644 --- a/src/Misc/Integer.jl +++ b/src/Misc/Integer.jl @@ -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""" diff --git a/src/NumFieldOrd/NfOrd/Ideal/Ideal.jl b/src/NumFieldOrd/NfOrd/Ideal/Ideal.jl index 259ca1b69a..faeb6c8e63 100644 --- a/src/NumFieldOrd/NfOrd/Ideal/Ideal.jl +++ b/src/NumFieldOrd/NfOrd/Ideal/Ideal.jl @@ -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) diff --git a/src/NumFieldOrd/NfOrd/Unit/UnitGrpCtx.jl b/src/NumFieldOrd/NfOrd/Unit/UnitGrpCtx.jl index 69f1c50a5e..4a6663a11d 100644 --- a/src/NumFieldOrd/NfOrd/Unit/UnitGrpCtx.jl +++ b/src/NumFieldOrd/NfOrd/Unit/UnitGrpCtx.jl @@ -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 ################################################################################ diff --git a/src/Sparse/Module.jl b/src/Sparse/Module.jl index cabd4b0ec4..7b73b4cd0f 100644 --- a/src/Sparse/Module.jl +++ b/src/Sparse/Module.jl @@ -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