andete / madparts

A functional footprint editor.
GNU General Public License v3.0
80 stars 8 forks source link

Kicad label footprint text badly formed #87

Closed spanner888 closed 9 years ago

spanner888 commented 9 years ago

This code:

format 1.2

#name text label test
#id 0a64e76e455947718f97bc5a5ed8449a
#desc TODO
footprint = () ->
  label = new Label "This is a label"

  combine [label]

Produces this footprint: (module "text label test" (layer F.Cu) (descr "TODO") (fp_text user This\ is\ a\ label (at 0.0 0.0) (layer F.SilkS) (effects (font (size 0.625 0.625) (thickness 0.1)))))

Instead of something like: (module "text label test" (layer F.Cu) (descr "TODO") (fp_text user "This is a label" (at 0.0 0.0) (layer F.SilkS) (effects (font (size 0.625 0.625) (thickness 0.1))))) ie strip all "\" and enclose label text in quotes "This is a label"