Commits

saar drimer committed eda4b50

whitespace is now preserved for refdef index

  • Participants
  • Parent commits 753802f

Comments (0)

Files changed (2)

         refdef_index = cfg['pcbmode']['refdef_index']['pcbmode']
         refdef_column_length = 28
 
+        uncategorised = 'TBD'
+
         components = cfg['board']['placement']['components']
         for layer in components:
             comp_lists = {}
                            comp_lists[rd_type][generic] = []
                         comp_lists[rd_type][generic].append(refdef)
                     else:
-                        if comp_lists[rd_type].get('uncategorised') is None:
-                            comp_lists[rd_type]['uncategorised'] = []
-                        comp_lists[rd_type]['uncategorised'].append(refdef)
+                        if comp_lists[rd_type].get(uncategorised) is None:
+                            comp_lists[rd_type][uncategorised] = []
+                        comp_lists[rd_type][uncategorised].append(refdef)
                 else:
-                    if comp_lists.get('uncategorised') is None:
-                        comp_lists['uncategorised'] = []
-                    comp_lists['uncategorised'].append(refdef)
+                    if comp_lists.get(uncategorised) is None:
+                        comp_lists[uncategorised] = []
+                    comp_lists[uncategorised].append(refdef)
 
             lines = []
 
                                                         style,
                                                         refdef)
 
-            #new_layer.set('{'+cfg['namespace']['inkscape']+'}groupmode', 'layer')            
-            #tmp[layer_name]['layer'].set('{'+cfg['namespace']['xml']+'}groupmode', 'preserve')
+            # preserve whitespace so things align well
+            tmp[layer_name]['layer'].set('{http://www.w3.org/XML/1998/namespace}space', 'preserve')
 
 
     # create dimentions layer