Skip to content

Commit 479fefc

Browse files
authored
Merge pull request #803 from JuliaRobotics/21Q3/fix/johansepoefie
fixing a show (should be display)
2 parents 5ecbf0b + 78bb28c commit 479fefc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/CustomPrinting.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Base.show(io::IO, ::MIME"text/plain", v::DFGVariable) = printVariable(io, v, sho
183183

184184
Base.show(io::IO, ::MIME"text/plain", f::DFGFactor) = printFactor(io, f, short=true, limit=false)
185185

186-
function Base.show(io::IO, ::MIME"text/plain", dfg::AbstractDFG)
186+
function Base.show(io::IO, dfg::AbstractDFG)
187187
summary(io, dfg)
188188
println(io, "\n UserId: ", dfg.userId)
189189
println(io, " RobotId: ", dfg.robotId)
@@ -196,6 +196,7 @@ function Base.show(io::IO, ::MIME"text/plain", dfg::AbstractDFG)
196196
println(io, " Session Data: ", keys(dfg.sessionData))
197197
end
198198

199+
Base.show(io::IO, ::MIME"text/plain", dfg::AbstractDFG) = show(io, dfg)
199200

200201
#default for Atom/Juno
201-
Base.show(io::IO, ::MIME"application/prs.juno.inline", x::Union{AbstractDFG, DFGVariable, DFGFactor}) = x
202+
Base.show(io::IO, ::MIME"application/prs.juno.inline", x::Union{AbstractDFG, DFGVariable, DFGFactor}) = show(io, x)

0 commit comments

Comments
 (0)