Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -62,8 +62,12 @@ public FormatFloatNode(RubyContext context, int width, int precision, char forma
}
} else if (hasZeroFlag) {
finiteFormatBuilder.append("0");
finiteFormatBuilder.append(width);
} else if (!hasSpaceFlag && !hasSpaceFlag) {
if(width > 0){
finiteFormatBuilder.append(width);
} else {
finiteFormatBuilder.append(1);
}
} else if (!hasSpaceFlag && !hasSpaceFlag && width > 0) {
finiteFormatBuilder.append(width);
}

0 comments on commit 06a7cee

Please sign in to comment.