Skip to content

Commit ea557a3

Browse files
authored
Fix to preserve_interword_spaces work again
1 parent f29498f commit ea557a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ccstruct/pageres.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ void PAGE_RES_IT::ReplaceCurrentWord(
13311331
if (input_word->word->flag(W_BOL)) {
13321332
(*words)[0]->word->set_flag(W_BOL, true);
13331333
} else {
1334-
(*words)[0]->word->set_blanks(1);
1334+
(*words)[0]->word->set_blanks(input_word->word->space());
13351335
}
13361336
words->back()->word->set_flag(W_EOL, input_word->word->flag(W_EOL));
13371337

0 commit comments

Comments
 (0)