home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Servidores / xampp-win32-1.6.7-installer.exe / php / PEAR / Text / Wiki / Parse / Default / Tighten.php < prev    next >
Encoding:
PHP Script  |  2008-07-02  |  691 b   |  49 lines

  1. <?php
  2.  
  3. /**
  4. * The rule removes all remaining newlines.
  5. * @category Text
  6. * @package Text_Wiki
  7. * @author Paul M. Jones <pmjones@php.net>
  8. * @license LGPL
  9. * @version $Id: Tighten.php,v 1.3 2005/02/23 17:38:29 pmjones Exp $
  10. */
  11.  
  12.  
  13. /**
  14. * The rule removes all remaining newlines.
  15. *
  16. * @category Text
  17. * @package Text_Wiki
  18. * @author Paul M. Jones <pmjones@php.net>
  19. */
  20.  
  21. class Text_Wiki_Parse_Tighten extends Text_Wiki_Parse {
  22.     
  23.     
  24.     /**
  25.     * 
  26.     * Apply tightening directly to the source text.
  27.     *
  28.     * @access public
  29.     * 
  30.     */
  31.     
  32.     function parse()
  33.     {
  34.         $this->wiki->source = str_replace("\n", '',
  35.             $this->wiki->source);
  36.     }
  37. }
  38. ?>