| // +----------------------------------------------------------------------+ // // $Id: tighten.php,v 1.1 2004/01/04 01:35:23 pmjones Exp $ /** * * This rule removes all newlines from the source text. * * @author Paul M. Jones * * @package Text_Wiki * */ class Text_Wiki_Rule_tighten extends Text_Wiki_Rule { /** * * Simple parsing method to apply tightening directly to the tokens * array. * * @access public * */ function parse() { $this->_wiki->_source = str_replace("\n", "", $this->_wiki->_source); } } ?>