diff --git a/ccmain/resultiterator.cpp b/ccmain/resultiterator.cpp index 15f6801be7..ba583f378a 100644 --- a/ccmain/resultiterator.cpp +++ b/ccmain/resultiterator.cpp @@ -635,7 +635,8 @@ void ResultIterator::IterateAndAppendUTF8TextlineText(STRING *text) { int words_appended = 0; do { - int numSpaces = preserve_interword_spaces_ ? it_->word()->word->space() : 1; + int numSpaces = preserve_interword_spaces_ ? it_->word()->word->space() : + (words_appended > 0); for(int i = 0 ; i < numSpaces ; ++i) { *text += " "; }