Skip to content

Commit 9407ad0

Browse files
committed
Merge pull request #37 from bicycle1885/newlines
do not emit a newline when showing nodes/elements
2 parents 2cbe955 + 43360f5 commit 9407ad0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/document.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,4 @@ function Base.string(xdoc::XMLDocument; encoding::AbstractString="utf-8")
123123
_xcopystr(buf_out[1])
124124
end
125125

126-
Base.show(io::IO, xdoc::XMLDocument) = println(io, string(xdoc))
126+
Base.show(io::IO, xdoc::XMLDocument) = print(io, string(xdoc))

src/nodes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function Base.string(nd::XMLNode)
184184
return r
185185
end
186186

187-
Base.show(io::IO, nd::XMLNode) = println(io, string(nd))
187+
Base.show(io::IO, nd::XMLNode) = print(io, string(nd))
188188

189189

190190
#######################################

0 commit comments

Comments
 (0)