Skip to content

WIP: Add optimization that prunes nested <g>-tags

Jonathan Neuhauser requested to merge github/fork/nthykier/collapse-g-tags into master

Created by: nthykier

An optimization that prunes nested -tags when they contain exactly one and nothing else (except whitespace nodes). This looks a bit like removeNestedGroups except it only touches tags without attributes (but can remove -tags completely from a tree, whereas this optimization always leaves at least one tag behind).

Closes: #215

Merge request reports