Skip to content

Commit

Permalink
Fix to preserve_interword_spaces work again
Browse files Browse the repository at this point in the history
  • Loading branch information
mingodad authored Sep 6, 2017
1 parent f29498f commit ea557a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccstruct/pageres.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1331,7 +1331,7 @@ void PAGE_RES_IT::ReplaceCurrentWord(
if (input_word->word->flag(W_BOL)) {
(*words)[0]->word->set_flag(W_BOL, true);
} else {
(*words)[0]->word->set_blanks(1);
(*words)[0]->word->set_blanks(input_word->word->space());
}
words->back()->word->set_flag(W_EOL, input_word->word->flag(W_EOL));

Expand Down

2 comments on commit ea557a3

@anask1104
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not able to find the file nor the code, I am using Tesseract v4.0 alpha with python.
Please help me out!

@Shreeshrii
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use latest code from github. Many issues have been fixed since the alpha version you are using.

Please sign in to comment.