Invalid code

Nice widget if it would work. Easy to follow directions. Unfortunately the short code produced is invalid and will not work when pasted on to page. Misformed code shows up on the page with no intended effect.
Tried to resolve issue and was told to follow the directions that produced the invalid code in the first place.