Skip to content
Snippets Groups Projects
Commit dd050cbc authored by Franck Dary's avatar Franck Dary
Browse files

Fixed Config::printForDebug

parent b2c35601
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ void Config::print(FILE * dest) const ...@@ -71,7 +71,7 @@ void Config::print(FILE * dest) const
} }
for (unsigned int i = 0; i < getNbColumns()-1; i++) for (unsigned int i = 0; i < getNbColumns()-1; i++)
{ {
auto & colContent = isPredicted(getColName(i)) ? getLastNotEmptyHypConst(i, getFirstLineIndex()+line) : getLastNotEmptyConst(i, getFirstLineIndex()+line); auto & colContent = isPredicted(getColName(i)) ? getLastNotEmptyHypConst(i, getFirstLineIndex()+line) : getLastNotEmptyConst(i, line);
fmt::print(dest, "{}{}", colContent, i < getNbColumns()-2 ? "\t" : "\n"); fmt::print(dest, "{}{}", colContent, i < getNbColumns()-2 ? "\t" : "\n");
} }
if (getLastNotEmptyConst(EOSColName, getFirstLineIndex()+line) == EOSSymbol1) if (getLastNotEmptyConst(EOSColName, getFirstLineIndex()+line) == EOSSymbol1)
...@@ -109,7 +109,7 @@ void Config::printForDebug(FILE * dest) const ...@@ -109,7 +109,7 @@ void Config::printForDebug(FILE * dest) const
toPrint.back().emplace_back(line == (int)wordIndex ? "=>" : ""); toPrint.back().emplace_back(line == (int)wordIndex ? "=>" : "");
for (unsigned int i = 0; i < getNbColumns(); i++) for (unsigned int i = 0; i < getNbColumns(); i++)
{ {
auto & colContent = isPredicted(getColName(i)) ? getLastNotEmptyHypConst(i, line) : getLastNotEmptyConst(i, getFirstLineIndex()+line); auto & colContent = isPredicted(getColName(i)) ? getLastNotEmptyHypConst(i, line) : getLastNotEmptyConst(i, line);
toPrint.back().emplace_back(util::shrink(colContent, maxWordLength)); toPrint.back().emplace_back(util::shrink(colContent, maxWordLength));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment