1. Britton Smith
  2. np

Commits

Britton Smith  committed c714c74

Did it right this time.

  • Participants
  • Parent commits cf37142
  • Branches default

Comments (0)

Files changed (1)

File np

View file
     my ($value, $len, $spc) = @_;
     return $value if ($len <= length($value));
     my $right_space = int(($len - length($value)) / 2);
-    my $left_space = $len - length($value) - $left_space;
+    my $left_space = $len - length($value) - $right_space;
     return ($spc x $left_space . $value . $spc x $right_space);
 }