We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36883b4 commit 9bca55cCopy full SHA for 9bca55c
ccmain/resultiterator.cpp
@@ -635,7 +635,8 @@ void ResultIterator::IterateAndAppendUTF8TextlineText(STRING *text) {
635
636
int words_appended = 0;
637
do {
638
- int numSpaces = preserve_interword_spaces_ ? it_->word()->word->space() : 1;
+ int numSpaces = preserve_interword_spaces_ ? it_->word()->word->space() :
639
+ (words_appended > 0);
640
for(int i = 0 ; i < numSpaces ; ++i) {
641
*text += " ";
642
}
0 commit comments