stream() remove comma in NTTable
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user