Skip to content

Commit 36acef6

Browse files
committed
Merge branch 'main' of https://github.com/TimG1964/XML.jl
2 parents ee62f58 + 815d8bf commit 36acef6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "XML"
22
uuid = "72c71f33-b9b6-44de-8c94-c961784809e2"
33
authors = ["Josh Day <[email protected]> and contributors"]
4-
version = "0.3.6"
4+
version = "0.3.7"
55

66
[deps]
77
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"

src/raw.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ function next_xml_space(o::Raw)
425425
end
426426
return Raw(type, depth, i, j - i, data, ctx, has_xml_space)
427427
end
428-
#
428+
429429
function next_no_xml_space(o::Raw) # same as v0.3.5
430430
i = o.pos + o.len + 1
431431
depth = o.depth

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ end
116116
@test String(doc[end]) == "</catalog>"
117117

118118
@testset "next and prev" begin
119+
@test XML.prev(doc[1]) == data # can't use === here because prev returns a copy of ctx
119120
@test XML.prev(doc[1]) == data # can't use === here because prev returns a copy of ctx
120121
@test prev(data) === nothing
121122
@test XML.next(doc[end]) === nothing

0 commit comments

Comments
 (0)