std.print.format.common

*indent*

dynamic

*indent-step*

dynamic

+clearline+

+pad+

+space+

+style:line+

+style:pad+

+up+

border

added in 3.0

(border lines)(border lines width)(border lines width style)

formats a border around given lines

indent

added in 3.0

(indent lines)(indent lines indent)

format lines with indent

justify

added in 3.0

(justify align content length)

justifies the content to a given alignment

(justify :right “hello” 10) => “hello”

(justify :left “hello” 10) => "hello "

pad

added in 3.0

(pad len & [pad-char])

creates n number of spaces

(pad 1) => "" (pad 5) => ""

pad:center

added in 3.0

(pad:center content length & [pad-char])

puts the content at the center, padding missing spacing

(pad:center “hello” 10) => "hello "

pad:left

added in 3.0

(pad:left content length & [pad-char])

puts the content to the right, padding missing spaces

(pad:left “hello” 10) => “hello”

pad:lines

added in 3.0

(pad:lines lines length height)

creates new lines of n spaces (pad:lines [] 10 2) => " " " "

pad:right

added in 3.0

(pad:right content length & [pad-char])

puts the content to the left, padding missing spaces

(pad:right “hello” 10) => "hello "