We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e42c7a0 commit 7f5baa0Copy full SHA for 7f5baa0
src/SplitCode.h
@@ -455,16 +455,17 @@ struct SplitCode {
455
of << "\n";
456
if (do_qc) {
457
of << "\t" << "\"tag_qc\": " << "[" << "\n";
458
+ bool first = true;
459
for (int i = 0; i < qc.size(); i++) {
460
if (qc[i].size() == 0) continue;
461
for (int j = 0; j < qc[i].size(); j++) {
462
+ if (!first) of << ",";
463
+ if (!first) of << "\n";
464
+ first = false;
465
of << "\t\t{\"tag\": \"" << names[i] << "\", \"distance\": " << j << ", \"count\": " << qc[i][j] << "}";
- if (!(i == qc.size()-1 && j == qc[i].size()-1)) {
- of << ",";
- }
- of << "\n";
466
}
467
468
469
of << "\t" << "]" << "\n";
470
471
of << "}" << std::endl;
0 commit comments