Feature Request: Lighter strip
| From: | Matthias Schniedermeyer | Date: | Wed, 27 Aug 2003 09:56:47 +0000 |
| Subject: | Feature Request: Lighter strip | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10134@lists.php.net to get a copy of this message | ||
Hi
To save bytes & still have (at least a bit) readable Output i currently use this modifier
- snip -
{$left|regex_replace:"/\n\s+/":"\n"}
- snip -
This only strippes of whitespaces at the beginning of the line, which is "enough" in my eyes.
The output retains a rudimentary readability.
Btw.
For the people asking themself if there is a connection between this mails and the former.
- snip -
{include file=index/left.tpl assign=left}
{if ($debug)}{"$left\n"|indent:6}{else}{"$left\n"|regex_replace:"/\n\s+/":"\n"}{/if}
- snip -
--
Matthias Schniedermeyer Telefonica Deutschland GmbH
System Design & Integration http://www.telefonica.de
System Designer voice: +49 5246 80 1768
mailto:citd@telefonica.de fax: +49 5246 80
2768
GPG-fingerprint = 9FC6 BE31 FC34 34B5 97E1 D34A B605 5ED9 FDC2 7C36