text-sequence-decls
p
p
I end with
text-sequence-decls
p
p
p
The new paragraph is appended as I would expect.
This means my test results are happy. But for the single paragraph case it is not, because the swapping of nodes.
The end document looks the same in OO of course.
Poking around in the BDT put code the difference is in the processing of.
// Find the last node
DFNode *last = NULL;
if (concrete->last != NULL) {
last = concrete->last;
while ((last->prev != NULL) && !isVisible(ctx,last->prev))
last = last->prev;
}
In the single paragraph case the text-sequence-decls is the last node.
Whereas it is one of the p in the two paragraph case.
And is a function of the isVisible. The text-sequence-decls are not visible.
Can you shed any light as to why this is they way it is? I assume the isVisible is correct as being false for the text-sequence-decls since they cannot be seen in the editor?
I also see a degree of other juggling happening in the put processing, but generally it seems ok, I think I get what is going on.
With perhaps a query on the
// Fixup stage - move nodes backwards as much as possible to their previous prevHidden
Section