Spacing only changes the spacing of the layout between successive rectangles (if you input more than one curve), does not affect the rectangles themselves. Seems to work here.
The “Length margin” is how much to add to overall length of the curve to get the length
The Height is the total height of each rectangle - it’s not an additional factor
Were you expecting it to do something different? The script can be adjusted…