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

[Feature Request] Allow inclusion of alignment in formatting #36

Open
TheodoreBrinkman opened this issue Aug 23, 2024 · 1 comment
Open

Comments

@TheodoreBrinkman
Copy link

TheodoreBrinkman commented Aug 23, 2024

FormatWith currently handles only format strings {name:formatString}, but there's an optional alignment section {name,alignmentValue:formatString} that should be handled. I've started by adding a test and some test values in pull 35 (#35), along with a description of what needs to happen in the parsing to allow for it.

For example: for a date variable named 'test', to format it yyyy-MM-dd and left-pad it to 15 characters, the tag should read: {test,15:yyyy-MM-dd}, and the standard format string would be {0,15:yyyy-MM-dd}. To right-pad it, use a negative number.

@TheodoreBrinkman TheodoreBrinkman changed the title Allow inclusion of alignment in formatting [Feature Request] Allow inclusion of alignment in formatting Aug 23, 2024
@TheodoreBrinkman
Copy link
Author

@crozone I've gotten a full changeset complete with new tests put together in the linked Pull (#35).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant