Short version is to remove the previous block, and replace :
`if(lastStyle == null)` by `if(endCol > startCol && lastStyle == null)`.

The drawback is that we loose text-style information (is it useful, as we pump no character ?), and this can be NPE prone.