X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Fmodifier.indent.php;fp=wwwroot%2Finc%2Fsmarty%2Fnode_methodz%2Fmodifier.indent.php;h=552c3e1998ce2d97fdbf8e0fed9b567a03e85aa8;hb=51ff32267c4949bad6a8dddc502cbc01ed56edc8;hp=0000000000000000000000000000000000000000;hpb=dcee763368a1e3f380d07320a5254d91a09304e6;p=mirrors%2FKyberia-bloodline.git diff --git a/wwwroot/inc/smarty/node_methodz/modifier.indent.php b/wwwroot/inc/smarty/node_methodz/modifier.indent.php new file mode 100644 index 0000000..552c3e1 --- /dev/null +++ b/wwwroot/inc/smarty/node_methodz/modifier.indent.php @@ -0,0 +1,27 @@ + + * Name: indent
+ * Purpose: indent lines of text + * @link http://smarty.php.net/manual/en/language.modifier.indent.php + * indent (Smarty online manual) + * @param string + * @param integer + * @param string + * @return string + */ +function smarty_modifier_indent($string,$chars=4,$char=" ") +{ + return preg_replace('!^!m',str_repeat($char,$chars),$string); +} + +?>