Skip to content

Commit 9bca55c

Browse files
committed
fix space issue in revision 36883b4
1 parent 36883b4 commit 9bca55c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ccmain/resultiterator.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,8 @@ void ResultIterator::IterateAndAppendUTF8TextlineText(STRING *text) {
635635

636636
int words_appended = 0;
637637
do {
638-
int numSpaces = preserve_interword_spaces_ ? it_->word()->word->space() : 1;
638+
int numSpaces = preserve_interword_spaces_ ? it_->word()->word->space() :
639+
(words_appended > 0);
639640
for(int i = 0 ; i < numSpaces ; ++i) {
640641
*text += " ";
641642
}

0 commit comments

Comments
 (0)