File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ function prev(o::Raw)
358
358
k = findprev (! isspace, data, j)
359
359
if isnothing (k) || length (String (o. data[o. pos + o. len + 1 : end ]))== 0
360
360
length (ctx. preserve_space)> 0 && pop! (ctx. preserve_space) # pop the previous context
361
- return Raw (data) # RawDocument
361
+ return Raw (data, ctx ) # RawDocument
362
362
end
363
363
j = length (ctx. preserve_space) == 0 || ! (ctx. preserve_space[end ]) ? k : j
364
364
c = Char (o. data[j])
Original file line number Diff line number Diff line change 116
116
@test String (doc[end ]) == " </catalog>"
117
117
118
118
@testset " next and prev" begin
119
- @test XML. prev (doc[1 ]) == data
119
+ @test XML. prev (doc[1 ]) === data
120
120
@test prev (data) === nothing
121
121
@test XML. next (doc[end ]) === nothing
122
122
You can’t perform that action at this time.
0 commit comments