5 * Parses for explicit line breaks.
11 * @author Paul M. Jones <pmjones@php.net>
15 * @version $Id: Break.php,v 1.3 2005/02/23 17:38:29 pmjones Exp $
21 * Parses for explicit line breaks.
23 * This class implements a Text_Wiki_Parse to mark forced line breaks in the
30 * @author Paul M. Jones <pmjones@php.net>
34 class Text_Wiki_Parse_Break
extends Text_Wiki_Parse
{
39 * The regular expression used to parse the source text and find
40 * matches conforming to this rule. Used by the parse() method.
50 var $regex = '/ _\n/';
55 * Generates a replacement token for the matched text.
59 * @param array &$matches The array of matches from parse().
61 * @return string A delimited token to be used as a placeholder in
66 function process(&$matches)
68 return $this->wiki
->addToken($this->rule
);