File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ class ResultIteratorTest : public testing::Test {
122
122
// EXPECTs that the rebuild string exactly matches the truth string.
123
123
void VerifyIteratorText (const std::string& truth, PageIteratorLevel level,
124
124
ResultIterator* it) {
125
- LOG (INFO) << " Text Test Level " << level;
125
+ LOG (INFO) << " Text Test Level " << level << " \n " ;
126
126
it->Begin ();
127
127
std::string result;
128
128
do {
@@ -136,7 +136,9 @@ class ResultIteratorTest : public testing::Test {
136
136
} else {
137
137
result += ' ' ;
138
138
}
139
- if (it->IsAtFinalElement (tesseract::RIL_PARA, level)) result += ' \n ' ;
139
+ if (it->IsAtFinalElement (tesseract::RIL_PARA, level) &&
140
+ !(it->IsAtFinalElement (tesseract::RIL_BLOCK, level)))
141
+ result += ' \n ' ;
140
142
}
141
143
} while (it->Next (level));
142
144
EXPECT_STREQ (truth.c_str (), result.c_str ())
You can’t perform that action at this time.
0 commit comments