Browse Source

Fix indentation

tags/v1.1.2
Andrew Belt 5 years ago
parent
commit
6dd809aaf3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      helper.py

+ 2
- 1
helper.py View File

@@ -259,8 +259,9 @@ def panel_to_components(tree):
# Get components layer
root = tree.getroot()
groups = root.findall(".//svg:g[@inkscape:label='components']", ns)
# Illustrator uses `id` for the group name.
if len(groups) < 1:
groups = root.findall(".//svg:g[@id='components']", ns)
groups = root.findall(".//svg:g[@id='components']", ns)
if len(groups) < 1:
raise UserException("Could not find \"components\" layer on panel")



Loading…
Cancel
Save