indent
Indent each non-empty line with spaces.
Syntax
1{{ value | indent }}2{{ value | indent:2 }}Usage
- The optional width is an integer from 0 to 1000. It defaults to two spaces; zero leaves the text unchanged.
- Indents the first line as well as subsequent lines. Existing indentation, empty lines, and line endings are preserved.
Examples
Basic usage
| Data | |
|---|---|
| Template | |
| Output | |
Choose a width
| Data | |
|---|---|
| Template | |
| Output | |