1<?php
2
3/**
4*
5* Parses for explicit line breaks.
6*
7* @category Text
8*
9* @package Text_Wiki
10*
11* @author Paul M. Jones <pmjones@php.net>
12*
13* @license LGPL
14*
15* @version $Id$
16*
17*/
18
19/**
20*
21* Parses for explicit line breaks.
22*
23* This class implements a Text_Wiki_Parse to mark forced line breaks in the
24* source text.
25*
26* @category Text
27*
28* @package Text_Wiki
29*
30* @author Paul M. Jones <pmjones@php.net>
31*
32*/
33
34//Not used in CoWiki
35class Text_Wiki_Parse_Break extends Text_Wiki_Parse {
36
37
38    /**
39    *
40    * The regular expression used to parse the source text and find
41    * matches conforming to this rule.  Used by the parse() method.
42    *
43    * @access public
44    *
45    * @var string
46    *
47    * @see parse()
48    *
49    */
50
51    var $regex = '/ \\\n/';
52
53
54    /**
55    *
56    * Generates a replacement token for the matched text.
57    *
58    * @access public
59    *
60    * @param array &$matches The array of matches from parse().
61    *
62    * @return string A delimited token to be used as a placeholder in
63    * the source text.
64    *
65    */
66
67    function process(&$matches)
68    {
69        return $this->wiki->addToken($this->rule);
70    }
71}
72
73?>