Skip to main content

$(padEnd)

$(padEnd [length] [char] [text])

Pads the end of the text with char until it is length characters long. The pad character may be quoted ('.') — use ' ' for a space.

Examples

$(padEnd 5 . 42)

Will display "42..."

$(padEnd 12 ' ' {{username}})

Will display the username padded with spaces to 12 characters — useful for aligning columns in monospace text.