pad
Widens text to a fixed length by repeating a filler character. Text already at or beyond the length is unchanged.
Explained in:Functions
#Attributes
#Allowed content
Body { }Inline Chalk content, flattened to plain text
#Examples
!pad:6{42}(with: 0)#Notes
!pad:6{42}gives42;!pad:6{42}(side: end; with: .),42....;!pad:6{42}(with: 0),000042.- The filler is trimmed by the attribute parser and so cannot be a space — which is why an absent or empty
withmeans one space.