-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
string padding: cpad, fix lpad and rpad (use strwidth not length).
The cpad function center pads a string by making appropriate calls to lpad and rpad. The lpad and rpad functions should have been using the strwidth function to determine how many columns strings take up, but before they were incorrectly using `length` instead.
- Loading branch information
1 parent
0e37602
commit 8be4acc
Showing
1 changed file
with
9 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters