How to pass variable with spaces from shell to expect?

I need call expect script from shell script and pass values some of which could contain space. How to make expect to treat such values as one variable?

I believe if you double quote your variable when you can expect, it should work. Example:

my-expect-code "$shellvar1" "$shellvar2"