mvnmgrx / kiutils

Simple and SCM-friendly KiCad file parser based on Python dataclasses for KiCad 6.0 and up.
GNU General Public License v3.0
78 stars 25 forks source link

Footprint: Pad.layers token are quoted, but missing after parsing #102

Open mvnmgrx opened 1 year ago

mvnmgrx commented 1 year ago

Input

(footprint "JST_EH_B2B-EH-A_1x02_P2.50mm_Vertical" (version 20221018) (generator pcbnew)
  (pad "1" thru_hole roundrect (at 0 0) (size 1.7 2) (drill 1) (layers "*.Cu" "*.Mask") (roundrect_rratio 0.147059) (tstamp b9960672-3af1-4d13-99fc-2f62dd24a4bc))
  (pad "2" thru_hole oval (at 2.5 0) (size 1.7 2) (drill 1) (layers "*.Cu" "*.Mask") (tstamp 94cccd64-f718-491b-83c2-3fc50ed44c7e))
)

Output

(footprint "JST_EH_B2B-EH-A_1x02_P2.50mm_Vertical" (version 20221018) (generator pcbnew)
  (pad "1" thru_hole roundrect (at 0 0) (size 1.7 2) (drill 1) (layers *.Cu *.Mask) (roundrect_rratio 0.147059) (tstamp b9960672-3af1-4d13-99fc-2f62dd24a4bc))
  (pad "2" thru_hole oval (at 2.5 0) (size 1.7 2) (drill 1) (layers *.Cu *.Mask) (tstamp 94cccd64-f718-491b-83c2-3fc50ed44c7e))
)