缩进每一行的字符串,默认是缩进4个空格。 可选的参数可以设置缩进的空格数量。 可选的第二个参数设置缩进使用的字符,如用 "\t" 来代替空格缩进。 <table border="1"> <colgroup> <col align="center"> <col align="center"> <col align="center"> <col align="center"> <col> </colgroup> <thead><tr> <th align="center">参数顺序</th> <th align="center">类型</th> <th align="center">必选参数</th> <th align="center">默认值</th> <th>说明</th> </tr></thead> <tbody> <tr> <td align="center">1</td> <td align="center">integer</td> <td align="center">No</td> <td align="center">4</td> <td> 设置缩进多少空格 </td> </tr> <tr> <td align="center">2</td> <td align="center">string</td> <td align="center">No</td> <td align="center">一个空格</td> <td>设置用什么字符来进行缩进</td> </tr> </tbody> </table> 例子: articleTitle: ``` NJ judge to rule on nude beach. Sun or rain expected today, dark tonight. Statistics show that teen pregnancy drops off significantly after 25. ``` 模板: ``` _{$articleTitle}_ _{$articleTitle|indent}_ _{$articleTitle|indent:10}_ _{$articleTitle|indent:1:"\t"}_ ``` 输出: ``` NJ judge to rule on nude beach. Sun or rain expected today, dark tonight. Statistics show that teen pregnancy drops off significantly after 25. NJ judge to rule on nude beach. Sun or rain expected today, dark tonight. Statistics show that teen pregnancy drops off significantly after 25. NJ judge to rule on nude beach. Sun or rain expected today, dark tonight. Statistics show that teen pregnancy drops off significantly after 25. NJ judge to rule on nude beach. Sun or rain expected today, dark tonight. Statistics show that teen pregnancy drops off significantly after 25. ```