input|indent( count [, type [, filler ] ] )
Name | Type | Description | Required |
---|---|---|---|
count | integer | Number of indentations. | Yes. |
type | string | Type of indentation ("space", "tab" or "custom"). | No. |
filler | string | Custom indentation. | No. |
This operator indents the input string and returns it. The indentation type can be set to "space", "tab" or "custom". The default indentation is "space". If the indentation type is set to "custom", the "filler" parameter must be set to the desired indentation string.
{'This is my text'|indent( 1 )}
The following string will be returned: " This is my text".
{'This is my second line'|indent( 3, 'custom', '.' )}
The following string will be returned: "...This is my second line".
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.