indent

Indent each non-empty line with spaces.

View Markdown

Syntax

{{ value | indent }}{{ 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