You can achieve this with a minor hack to the code.
In baseapi.cpp, in the function TessBaseAPI::TesseractToText, where you see *ptr++ = ' '; you need to iterate this a number of times equal to word->word->space().
Note that the result will be very inaccurate, as (except for fixed pitch) there is no easy way of telling how many spaces it takes to match the original gap in the font that you are going to use to display it.
Ray.