Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use '^' to specify center alignment in format strings. fmt!( "[{:^5s}]", "Hi" ) -> "[ Hi ]" fmt!( "[{:^5s}]", "H" ) -> "[ H ]" fmt!( "[{:^5d}]", 1i ) -> "[ 1 ]" fmt!( "[{:^5d}]", -1i ) -> "[ -1 ]" fmt!( "[{:^6d}]", 1i ) -> "[ 1 ]" fmt!( "[{:^6d}]", -1i ) -> "[ -1 ]" If the padding is odd then the padding on the right will be one character longer than the padding on the left. Tuples squashed
- Loading branch information
wickerwaka
committed
Sep 4, 2014
1 parent
6d8b5c9
commit 2bc4a5e
Showing
6 changed files
with
33 additions
and
9 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
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
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
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
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
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
2bc4a5e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from alexcrichton
at wickerwaka@2bc4a5e
2bc4a5e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging wickerwaka/rust/fmt-center = 2bc4a5e into auto
2bc4a5e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wickerwaka/rust/fmt-center = 2bc4a5e merged ok, testing candidate = 4a5a9c5
2bc4a5e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/1162
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/1162
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1161
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1162
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/1157
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1158
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1157
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/1163
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1158
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1157
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android-t/builds/1160
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/1161
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1159
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1160
2bc4a5e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 4a5a9c5