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

Trim trailing whitespace from prefix in indent #353

Merged
merged 1 commit into from
May 13, 2021

Commits on May 13, 2021

  1. Trim trailing whitespace from prefix in indent

    Before, empty lines would get no prefix added. Now, empty lines have a
    trimmed prefix added.
    
    This little trick makes `indent` much more useful: you can now indent
    with `"# "` without fearing creating trailing whitespace in the output
    due to the trailing whitespace in your prefix.
    
    When you indent with a prefix of pure whitespace, such as `" "` or
    similar, you will see no difference. If you indent with a
    non-whitespace prefix, you will now see it added to every line of your
    input.
    mgeisler committed May 13, 2021
    Configuration menu
    Copy the full SHA
    fb98836 View commit details
    Browse the repository at this point in the history