You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
TheodoreBrinkman
changed the title
Allow inclusion of alignment in formatting
[Feature Request] Allow inclusion of alignment in formatting
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.
The text was updated successfully, but these errors were encountered: