From 6dd809aaf39188c9ad31a8673f357546e00d4435 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 9 Jul 2019 15:58:47 -0700 Subject: [PATCH] Fix indentation --- helper.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helper.py b/helper.py index 6c95cfc5..859a0994 100755 --- a/helper.py +++ b/helper.py @@ -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")