stream() remove comma in NTTable

This commit is contained in:
Michael Davidsaver
2018-10-30 11:34:29 -07:00
parent 5f93e292b2
commit 9b20505dcd
2 changed files with 7 additions and 7 deletions

View File

@@ -269,7 +269,7 @@ bool printTable(std::ostream& strm, const PVStructure& top)
for(size_t c=0, N=coldat.size(); c<N; c++) {
strm<<std::setw(widths[c])<<std::right<<labels[c];
if(c+1!=N) {
strm<<", ";
strm<<' ';
}
}
strm<<'\n';
@@ -279,7 +279,7 @@ bool printTable(std::ostream& strm, const PVStructure& top)
for(size_t c=0, N=coldat.size(); c<N; c++) {
strm<<std::setw(widths[c])<<std::right<<coldat[c][r];
if(c+1!=N)
strm<<", ";
strm<<' ';
}
strm<<'\n';
}

View File

@@ -234,7 +234,7 @@ void showNTTable()
pvd::PVStructurePtr input(pvd::getPVDataCreate()->createPVStructure(table));
testDiff("<undefined> \n"
"colA, colB\n"
"colA colB\n"
, print(input->stream()),
"empty table");
@@ -258,10 +258,10 @@ void showNTTable()
testDiff("<undefined> \n"
"labelA, \"label B\"\n"
" 1, one\\x7F\n"
" 2, \"two words\"\n"
" 3, \"A \\'\"\"\\'\"\n"
"labelA \"label B\"\n"
" 1 one\\x7F\n"
" 2 \"two words\"\n"
" 3 \"A \\'\"\"\\'\"\n"
, print(input->stream()),
"with data");
}