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)
358358 k = findprev (! isspace, data, j)
359359 if isnothing (k) || length (String (o. data[o. pos + o. len + 1 : end ]))== 0
360360 length (ctx. preserve_space)> 0 && pop! (ctx. preserve_space) # pop the previous context
361- return Raw (data) # RawDocument
361+ return Raw (data, ctx ) # RawDocument
362362 end
363363 j = length (ctx. preserve_space) == 0 || ! (ctx. preserve_space[end ]) ? k : j
364364 c = Char (o. data[j])
Original file line number Diff line number Diff line change 116116 @test String (doc[end ]) == " </catalog>"
117117
118118 @testset " next and prev" begin
119- @test XML. prev (doc[1 ]) == data
119+ @test XML. prev (doc[1 ]) === data
120120 @test prev (data) === nothing
121121 @test XML. next (doc[end ]) === nothing
122122
You can’t perform that action at this time.
0 commit comments