Skip to content

Commit

Permalink
fix printing for void elements
Browse files Browse the repository at this point in the history
  • Loading branch information
joshday committed Jan 31, 2024
1 parent 3f6e1dc commit e55d751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cobweb.jl
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function Base.show(io::IO, o::Node)
p(args...) = print(io, args...)
print_opening_tag(io, o)
foreach(x -> showable("text/html", x) ? show(io, MIME("text/html"), x) : p(x), children(o))
p("</", tag(o), '>')
tag(o) in VOID_ELEMENTS || p("</", tag(o), '>')
end

Base.show(io::IO, ::MIME"text/html", node::Node) = show(io, node)
Expand Down

0 comments on commit e55d751

Please sign in to comment.