Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove some trailing newlines from show methods #1363

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
################################################################################

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

Check warning on line 1469 in src/AlgAssAbsOrd/Ideal.jl

View check run for this annotation

Codecov / codecov/patch

src/AlgAssAbsOrd/Ideal.jl#L1469

Added line #L1469 was not covered by tests
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 @@
end

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

Check warning on line 355 in src/Grp/GenGrp.jl

View check run for this annotation

Codecov / codecov/patch

src/Grp/GenGrp.jl#L355

Added line #L355 was not covered by tests
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 @@
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))")

Check warning on line 372 in src/GrpAb/Lattice.jl

View check run for this annotation

Codecov / codecov/patch

src/GrpAb/Lattice.jl#L372

Added line #L372 was not covered by tests
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 @@
################################################################################

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))")

Check warning on line 17 in src/NumFieldOrd/NfOrd/Unit/UnitGrpCtx.jl

View check run for this annotation

Codecov / codecov/patch

src/NumFieldOrd/NfOrd/Unit/UnitGrpCtx.jl#L17

Added line #L17 was not covered by tests
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 @@


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))")

Check warning on line 13 in src/Sparse/Module.jl

View check run for this annotation

Codecov / codecov/patch

src/Sparse/Module.jl#L13

Added line #L13 was not covered by tests
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))")

Check warning on line 17 in src/Sparse/Module.jl

View check run for this annotation

Codecov / codecov/patch

src/Sparse/Module.jl#L17

Added line #L17 was not covered by tests
if isdefined(M, :basis_idx)
print(io, "current index: $(M.basis_idx)\n")
print(io, "\ncurrent index: $(M.basis_idx)")

Check warning on line 19 in src/Sparse/Module.jl

View check run for this annotation

Codecov / codecov/patch

src/Sparse/Module.jl#L19

Added line #L19 was not covered by tests
end
if isdefined(M, :essential_elementary_divisors)
print(io, "current structure: $(M.essential_elementary_divisors)\n")
print(io, "\ncurrent structure: $(M.essential_elementary_divisors)")

Check warning on line 22 in src/Sparse/Module.jl

View check run for this annotation

Codecov / codecov/patch

src/Sparse/Module.jl#L22

Added line #L22 was not covered by tests
end
end

Expand Down
Loading