Skip to content

Commit f090d74

Browse files
theogfdevmotion
andauthored
Update src/transform/chaintransform.jl
Co-Authored-By: David Widmann <[email protected]>
1 parent e695e0d commit f090d74

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/transform/chaintransform.jl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ Base.:∘(tc::ChainTransform, t::Transform) =
4141
Base.show(io::IO, t::ChainTransform) = printshifted(io, t, 0)
4242

4343
function printshifted(io::IO, t::ChainTransform, shift::Int)
44-
print(io, "Chain of $(length(t)) transforms:")
45-
print(io, "\n" * ("\t" ^ (shift + 1))* " - ")
44+
println(io, "Chain of ", length(t), " transforms:")
45+
for _ in 1:(shift + 1)
46+
print(io, "\t")
47+
end
48+
print(io, " - ")
4649
printshifted(io, t.transforms[1], shift + 2)
4750
for i in 2:length(t)
4851
print(io, " |> ")

0 commit comments

Comments
 (0)