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

Config::print now print '_' symbol instead of blank

parent ddad3ba4
No related branches found
No related tags found
No related merge requests found
...@@ -71,8 +71,12 @@ void Config::print(FILE * dest) const ...@@ -71,8 +71,12 @@ 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, line); auto & colContent = isPredicted(getColName(i)) ? getLastNotEmptyHypConst(i, getFirstLineIndex()+line) : getLastNotEmptyConst(i, getFirstLineIndex()+line);
fmt::print(dest, "{}{}", colContent, i < getNbColumns()-2 ? "\t" : "\n"); std::string valueToPrint = colContent;
if (valueToPrint.empty())
valueToPrint = "_";
fmt::print(dest, "{}{}", valueToPrint, i < getNbColumns()-2 ? "\t" : "\n");
} }
if (getLastNotEmptyConst(EOSColName, getFirstLineIndex()+line) == EOSSymbol1) if (getLastNotEmptyConst(EOSColName, getFirstLineIndex()+line) == EOSSymbol1)
fmt::print(dest, "\n"); fmt::print(dest, "\n");
......
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