indent

indent each line of given text


Parameters

indent text :string :literal

Attributes

n:integerpad by given number of spaces (default: 4)
with:stringuse given padding

Returns

  • :string
  • or  :nothing

Examples

copy
str: "one\ntwo\nthree" print indent str ; one ; two ; three print indent .n:10 .with:"#" str ; ##########one ; ##########two ; ##########three

Related