To continue this monolog…
I’m changing TextFlowEdit.removeEmptyParentChain() to remove empty paragraph
terminators as part of the process. I added a function to ParagraphElement to
remove empty terminators. If the terminator is not specifically removed, the
terminator will always automatically
Some more research shows that the non-replacement is normal. The paragraph is
then supposed to be merged, but that failed because there was a terminator
span. The terminator span got generated due to a change I made in
ensureTerminatorAfterReplace(). Of course, reverting my change causes a runti
> I think the terminator is regenerating itself.
That’s not precise. The problem is actually in SpanElement.replaceText() where
the relativeEndPosition is reduced for terminators so nothing is actually
deleted…
A tiny bit of commenting in the code how terminators are supposed to work would
hav