I added a comment to the bug. It's a problem that's been mentioned before. The problem is the encoding of side-by-side xrefs as: <note ...>...</note>, <note ...>...</note> where the comma is stand-alone, outside the constraint of either of the 2 notes.