@@ -82,7 +82,7 @@ def parseTilesCSV(fileName: Path) -> tuple[list[Tile], list[tuple[str, str]]]:
82
82
# Parse each tile config
83
83
for t in tilesData :
84
84
t = t .split ("\n " )
85
- tileName = t [0 ].split ("," )[1 ]
85
+ tileName = t [0 ].split ("," )[1 ]. strip ()
86
86
ports : list [Port ] = []
87
87
bels : list [Bel ] = []
88
88
matrixDir : Path | None = None
@@ -95,6 +95,7 @@ def parseTilesCSV(fileName: Path) -> tuple[list[Tile], list[tuple[str, str]]]:
95
95
96
96
for item in t :
97
97
temp : list [str ] = item .split ("," )
98
+ temp = [i .strip () for i in temp ]
98
99
if not temp or temp [0 ] == "" :
99
100
continue
100
101
if temp [0 ] in ["NORTH" , "SOUTH" , "EAST" , "WEST" , "JUMP" ]:
@@ -525,6 +526,7 @@ def parseFabricCSV(fileName: str) -> Fabric:
525
526
for i in parameters :
526
527
i = i .split ("," )
527
528
i = [j for j in i if j != "" ]
529
+ i = [i .strip () for i in i ]
528
530
if not i :
529
531
continue
530
532
if i [0 ].startswith ("Tile" ):
@@ -577,6 +579,7 @@ def parseFabricCSV(fileName: str) -> Fabric:
577
579
for f in fabricDescription :
578
580
fabricLineTmp = f .split ("," )
579
581
fabricLineTmp = [i for i in fabricLineTmp if i != "" ]
582
+ fabricLineTmp = [i .strip () for i in fabricLineTmp ]
580
583
if not fabricLineTmp :
581
584
continue
582
585
fabricLine = []
0 commit comments