mergeSiblingGroupsWithCommonAttributes: Avoid creating "empty" <g>-tags (#261)
Closes: #260 Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
parent
c84731e12d
commit
f56843acc0
1 changed files with 3 additions and 0 deletions
|
|
@ -1158,6 +1158,9 @@ def mergeSiblingGroupsWithCommonAttributes(elem):
|
|||
i -= 1
|
||||
continue
|
||||
attributes = {a.nodeName: a.nodeValue for a in currentNode.attributes.values()}
|
||||
if not attributes:
|
||||
i -= 1
|
||||
continue
|
||||
runStart, runEnd = i, i
|
||||
runElements = 1
|
||||
while runStart > 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue