After the recent changes of (X)HTML serialization for #2171, concerning inline elements, excess indentation whitespace could still be added following an empty tag of an inline element. This was caused by the empty tag not being remembered as the last closed tag.
This fix corrects the setting of Serializer.closed to that respect, and it extends HTML and XTHML serialization tests accordingly.
After the recent changes of (X)HTML serialization for #2171, concerning inline elements, excess indentation whitespace could still be added following an empty tag of an inline element. This was caused by the empty tag not being remembered as the last closed tag.
This fix corrects the setting of
Serializer.closed
to that respect, and it extends HTML and XTHML serialization tests accordingly.