LXML XMLParser@remove_blank_text removes white space in unexpected ways
Python : sys.version_info(major=3, minor=9, micro=10, releaselevel='final', serial=0)
lxml.etree : (4, 7, 1, 0)
libxml used : (2, 9, 12)
libxml compiled : (2, 9, 12)
libxslt used : (1, 1, 34)
libxslt compiled : (1, 1, 34)
In such case ("text" element contents being mixed and starts with an element):
<text><u>Text</u> <sref ref="id"/></text>
The space following "u" element is discarded.
But in such case ("text" element starts with some texts):
<text>Text <u>Text</u> <sref ref="id"/></text>
The space following "u" element is kept.
See also: https://bugs.launchpad.net/lxml/+bug/1964580