summaryrefslogtreecommitdiff
path: root/includes/pear/Text/Wiki/Parse/Creole/Tighten.php
blob: 8ef1b4533c91550042e55056602cd28f5536f784 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php

/**
 *
 * The rule removes all remaining newlines.
 *
 * @category Text
 *
 * @package Text_Wiki
 *
 * @author Paul M. Jones <pmjones@php.net>
 *
 * @license LGPL
 *
 * @version $Id: Tighten.php 222265 2006-10-23 13:11:27Z mic $
 *
 */


class Text_Wiki_Parse_Tighten extends Text_Wiki_Parse {


    /**
     *
     * Apply tightening directly to the source text.
     *
     * @access public
     *
     */

    function parse()
    {
        $this->wiki->source = str_replace("\n", '',
            $this->wiki->source);
    }
}
?>