Merge: Improve `Text::justify` and use it for a pretty `PerfMap::to_s`
authorJean Privat <jean@pryen.org>
Thu, 31 Mar 2016 13:58:57 +0000 (09:58 -0400)
committerJean Privat <jean@pryen.org>
Thu, 31 Mar 2016 13:58:57 +0000 (09:58 -0400)
commit2dffa0759c175223593872b23846575c6871cb5b
tree279dbe37d500ed65ab1905c2bd8526c4477d974e
parent16412c7d3c317504fb309f6ccd941f7dafbaf20a
parent1fcd14d1a7245ec34f1c98fce5ca09b2052e171c
Merge: Improve `Text::justify` and use it for a pretty `PerfMap::to_s`

This PR introduces padding services ( `pad_left` and `pad_right`) to `Text` and uses it for a cleaner print in `performance_analysis`.

Seeing how the left-pad package was critical to the node.js ecosystem motivated this PR. These methods should be useful in the long term!

Pull-Request: #2000
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>