From 8e85251e5611a8fbf2e661a341ad11fd9469897a Mon Sep 17 00:00:00 2001 From: arq5x <arq5x@virginia.edu> Date: Thu, 9 Jan 2014 14:15:04 -0500 Subject: [PATCH] [BUG] fix extra TAB at EOL in the annotate tool. --- src/annotateBed/annotateBed.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/annotateBed/annotateBed.cpp b/src/annotateBed/annotateBed.cpp index 40d7ef45..8b7e301e 100644 --- a/src/annotateBed/annotateBed.cpp +++ b/src/annotateBed/annotateBed.cpp @@ -189,11 +189,14 @@ void BedAnnotate::ReportAnnotations() { int nonZeroBases = (length - zeroDepthCount); float fractCovered = (float) nonZeroBases / length; if (_reportCounts == false && _reportBoth == false) - printf("%f\t", fractCovered); + printf("%f", fractCovered); else if (_reportCounts == true && _reportBoth == false) - printf("%d\t", bedItr->counts[i]); + printf("%d", bedItr->counts[i]); else if (_reportCounts == false && _reportBoth == true) - printf("%d\t%f\t", bedItr->counts[i], fractCovered); + printf("%d\t%f", bedItr->counts[i], fractCovered); + + if (i != _annoFiles.size() - 1) + printf("\t"); } // print newline for next feature. printf("\n"); -- GitLab