BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
661 stars 268 forks source link

Do not add indentation whitespace following empty (X)HTML inline elements #2176

Closed GuntherRademacher closed 1 year ago

GuntherRademacher commented 1 year ago

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.

ChristianGruen commented 1 year ago

…looks good.