Update to 2.9.12 causes lxml.etree.tostring() from python-lxml to print trailing garbage after the element
I updated to 2.9.12 in Fedora, and was directed to https://github.com/systemd/systemd/issues/19601#issuecomment-841250535 which uses the document at https://github.com/systemd/systemd/blob/main/man/systemd.socket.xml to trigger the bug, where garbage seems to be included after the element in question. I am not too familiar with the Python bindings, but would be happy to debug further.