Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor padding functions #254

Merged
merged 1 commit into from
Jan 31, 2024

Commits on Jan 30, 2024

  1. Refactor padding functions

    The `padLeft` and `padRight` functions were nearly identical and could
    benefit from being refactored to share common code.
    
    A new function called `pad` was added that applies padding based on the
    sign of the amount of padding needed. A positive value applies padding
    to the right side while a negative value applies padding to the left
    side.
    
    Issue: charmbracelet#252
    Signed-off-by: Michael Lorant <michael.lorant@nine.com.au>
    mikelorant committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    e261bf8 View commit details
    Browse the repository at this point in the history