Functions:indent

From Dwoo Docs

Jump to: navigation, search

Indents every line of a text by the given amount of characters

indent(string $value, [ int $by = 4, [ string $char = ' ' ]]) 
  • value : the string to indent
  • by : how many characters should be inserted before each line
  • char : the character(s) to insert




Example:

baseline
{indent "foo bar baz
qux and then what was it
again? quux quuux and so on I think"
}

Output:

baseline
    foo bar baz
    qux and then what was it
    again? quux quuux and so on I think
Personal tools
templates
page language

French

The article you want to access doesn't exist in French.
Deutsch
The article you want to access doesn't exist in Deutsch.
Russian
The article you want to access doesn't exist in Russian.