Force columnSpacing to be at least one. We need a general-purpose, working tool for outputting columnar data to a PrintStream; will add JIRA.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1457 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
811503d67b
commit
e5115409fa
|
|
@ -113,7 +113,7 @@ public class CommandLineGATK extends CommandLineExecutable {
|
|||
|
||||
final int fieldWidth = maxNameLength + HelpFormatter.FIELD_SEPARATION_WIDTH;
|
||||
final int walkersPerLine = Math.min(HelpFormatter.LINE_WIDTH / fieldWidth, 4 );
|
||||
final int columnSpacing = (HelpFormatter.LINE_WIDTH - (fieldWidth * walkersPerLine)) / walkersPerLine;
|
||||
final int columnSpacing = Math.max((HelpFormatter.LINE_WIDTH - (fieldWidth * walkersPerLine)) / walkersPerLine, 1);
|
||||
|
||||
int currentWalkerName = 0;
|
||||
for( String walkerName: walkerNames ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue