Skip to content

Commit

Permalink
Merge pull request #37 from bicycle1885/newlines
Browse files Browse the repository at this point in the history
do not emit a newline when showing nodes/elements
  • Loading branch information
tkelman committed Dec 27, 2015
2 parents 2cbe955 + 43360f5 commit 9407ad0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/document.jl
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,4 @@ function Base.string(xdoc::XMLDocument; encoding::AbstractString="utf-8")
_xcopystr(buf_out[1])
end

Base.show(io::IO, xdoc::XMLDocument) = println(io, string(xdoc))
Base.show(io::IO, xdoc::XMLDocument) = print(io, string(xdoc))
2 changes: 1 addition & 1 deletion src/nodes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function Base.string(nd::XMLNode)
return r
end

Base.show(io::IO, nd::XMLNode) = println(io, string(nd))
Base.show(io::IO, nd::XMLNode) = print(io, string(nd))


#######################################
Expand Down

0 comments on commit 9407ad0

Please sign in to comment.