Option a length limit-->|
<tag attribute1="attribute"
attribute2="another considerably longer attribute"
/>
Option a length limit-->|
Option b length limit-->|
<tag attribute1="attribute"
attribute2="another considerably longer attribute"/>
Option b length limit-->|
Indenting
Option y length limit-->|
<tag attribute1="attribute"
attribute2="another considerably longer attribute"
/>
Option y length limit-->|
Option n length limit-->|
<tag attribute1="attribute"
attribute2="another considerably longer attribute"
/>
Option n length limit-->|
My preference is for options 2ay
That is, breaking outside of attributes, indenting subsequent lines, and having the final angle bracket on its own line.
We don't have any guidelines for tags that are longer than the line length limit due to having multiple attributes.
Options
Where to break
No break:
Break outside attribute:
Break at any whitespace:
Trailing angle bracket
Indenting
My preference is for options 2ay That is, breaking outside of attributes, indenting subsequent lines, and having the final angle bracket on its own line.
Discuss/state preferences/alternatives.