Hi Jonathan, I think we can offer you a solution soon. I have created a GitHub issue to document the progress [1]. All the best, Christian [1] https://github.com/BaseXdb/basex/issues/2174 Jonathan Robie <jonathan.robie@gmail.com> schrieb am Mi., 15. Feb. 2023, 19:05:
Hi Christian,
I prefer to be able to require one attribute per line. This is important for Git diffs, which are the main reason we care.
Jonathan
On Wed, Feb 15, 2023 at 11:31 AM Christian Grün <christian.gruen@gmail.com> wrote:
Hi Jonathan,
Thanks for sharing your tidy settings.
With the given configuration, all attributes except for the first are returned in a separate line…
<wg class="cl" rule="S-IO" cltype="VerbElided">
In Patrick’s example, some attributes were returned in a single line (possibly depending on the expected string length). Maybe it was generated via Saxon (just a guess):
<wg class="cl" rule="S-IO" cltype="VerbElided">
Do you have a preference which representation would be required, or do you think the details are not that relevant?
We could possibly add a custom serialization parameter similar to tidy’s 'indent-attributes' option, and it would probably be easier to ignore the expected string length.
All the best, Christian