cvs: smarty /libs/plugins modifier.truncate.php

"Messju Mohr" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsmessju1071847375@cvsserver>
messju		Fri Dec 19 10:22:55 2003 EDT

  Modified files:              
    /smarty/libs/plugins	modifier.truncate.php 
  Log:
  removed tabs
  
  
Index: smarty/libs/plugins/modifier.truncate.php
diff -u smarty/libs/plugins/modifier.truncate.php:1.3 smarty/libs/plugins/modifier.truncate.php:1.4
--- smarty/libs/plugins/modifier.truncate.php:1.3	Sun Apr 20 17:12:12 2003
+++ smarty/libs/plugins/modifier.truncate.php	Fri Dec 19 10:22:55 2003
@@ -12,7 +12,7 @@
  * Type:     modifier<br>
  * Name:     truncate<br>
  * Purpose:  Truncate a string to a certain length if necessary,
- *           optionally splitting in the middle of a word, and 
+ *           optionally splitting in the middle of a word, and
  *           appending the $etc string.
  * @link http://smarty.php.net/manual/en/language.modifier.truncate.php
  *          truncate (Smarty online manual)
@@ -29,9 +29,9 @@
         return '';
 
     if (strlen($string) > $length) {
-        $length -= strlen($etc);	
+        $length -= strlen($etc);
         if (!$break_words)
-	    $string = preg_replace('/\s+?(\S+)?$/', '', substr($string, 0, $length+1));
+            $string = preg_replace('/\s+?(\S+)?$/', '', substr($string, 0, $length+1));
       
         return substr($string, 0, $length).$etc;
     } else

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.