Skip to content

string formatting - truncate, pad left and pad right #23

@mscalora

Description

@mscalora

It would be very useful to be able to truncate strings to a certain length and also pad left and right, currently only padding left appears to be supported. maybe upper case S could support traditional extended string formatting like

%10S       - pad right
%-10S      - pad left
%.10S      - truncate right
%-.10S     - truncate left
%10.10S    - pad and truncate right
%-10.10S   - pad and truncate left

I would consider creating a patch request if the idea is palatable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions