Skip to content

Negative minimum lengths to add padding to the right of tokens #2789

@patrick96

Description

@patrick96

Discussed in #2788

Originally posted by joshpetit August 21, 2022
Right now if we do

label = %date:15%

Then it will do padding to the left of of the label

image

Adding negatives to enable us to do padding to the
For example:

label =  %date:-15%

Would make the label a minimum of 15 characters, and if it is less than that then it'll add spaces as padding to the right of the label.


This feature will conflict with the zero-padding feature, for example %foo:-015%. This should not right-pad with zeroes and just right-pad with spaces (same behavior as printf).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions