Skip to content

preserve input leading/trailing whitespace from beginning and end in output #11

Description

@kevinlawler

whitespace is dropped if it is at the beginning or end. this is undesirable if using titlecase say as a method or plugin in a text editor such as vim. please preserve whitespace at beginning and end. I might prefer this to be the default behavior, but perhaps it makes sense to instead add this functionality as a flag like -w or --preserve-whitespace

input f g
expected F G
actual F G

or with visible spaces:
input ␣␣␣␣f␣␣g␣␣␣
expected ␣␣␣␣F␣␣G␣␣␣
actual F␣␣G

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions