Now I'm really confused. I'm getting inconsistent results.
I cut the input .txt down to a small fragment to make testing easier.
And I'm getting unwrapping happening in the fragment.
But not in the original document.
I need to do more testing and work out exactly whats going on.