Source for file Trim.php
Documentation is available at Trim.php
* Trim lines in the source text and compress 3 or more newlines to
* @author Paul M. Jones <pmjones@php.net>
* @author Michele Tomaiuolo <tomamic@yahoo.it>
$this->wiki->source = preg_replace($find, $replace, $this->wiki->source );
// trim lines with only one dash
$this->wiki->source = preg_replace($find, $replace, $this->wiki->source );
// finally, compress all instances of 3 or more newlines
$this->wiki->source = preg_replace($find, $replace, $this->wiki->source );
// make ordinal numbers superscripted
$find = "/(?<![\w])([\d]+)([^\W\d_]+)/";
$this->wiki->source = preg_replace($find, $replace, $this->wiki->source );
// numbers in parentesis are footnotes and references
/*$find = "/\(([\d]+)\)/";
$this->wiki->source = preg_replace($find, $replace, $this->wiki->source);*/
Documentation generated on Mon, 11 Mar 2019 14:56:56 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|