replace old paragraph with the new one
setsublist(ptr,newp);