Group as much as possible

Registered by Mikhail Ryazanov

Currently grouping requires at least 3 consecutive elements with common attributes. This leads to outputs like
<g stroke-width=".5">
<path d=.../>
</g>
<g stroke-width=".5">
<path d=.../>
</g>
if there are only 2 consecutive elements, that is, they are not grouped. This is obviously not optimal.
It would be advantageous to group even two elements if they have the same attributes. Or, better, always try to group >=2 elements, but accept the result only if it is shorter than the original code.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.