Format context correctly when chunks overlap