Skip to content

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

@TheodoreBrinkman

Description

@TheodoreBrinkman

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.

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