BaseXdb / basex

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

Add serialization option 'indent-attributes' #2177

Closed GuntherRademacher closed 1 year ago

GuntherRademacher commented 1 year ago

Here are the changes that implement #2174. A new serialization option is added to control indentation of attributes. The option name and the new layout are the same as in HTML Tidy:

The order of attributes is unchanged. indent-attributes is ignored when processing serialization methods other than xml, xhtml, or html. It may not make much sense to use this option without using indent=yes as well, but the implementation here does neither enforce nor require that.

The following has been changed:

If this PR should be accepted, the documentation must be adapted, at least in these two locations: