cvs: pear /Text_Wiki/Text/Wiki/Parse/Creole Preformatted.php
| From: | Michele Tomaiuolo | Date: | Wed, 07 Feb 2007 13:40:17 +0000 |
| Subject: | cvs: pear /Text_Wiki/Text/Wiki/Parse/Creole Preformatted.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44572@lists.php.net to get a copy of this message | ||
mic Wed Feb 7 13:40:17 2007 UTC
Modified files:
/pear/Text_Wiki/Text/Wiki/Parse/Creole Preformatted.php
Log:
removed htmlentities
http://cvs.php.net/viewvc.cgi/pear/Text_Wiki/Text/Wiki/Parse/Creole/Preformatted.php?r1=1.1&r2=1.2&diff_format=u
Index: pear/Text_Wiki/Text/Wiki/Parse/Creole/Preformatted.php
diff -u pear/Text_Wiki/Text/Wiki/Parse/Creole/Preformatted.php:1.1
pear/Text_Wiki/Text/Wiki/Parse/Creole/Preformatted.php:1.2
--- pear/Text_Wiki/Text/Wiki/Parse/Creole/Preformatted.php:1.1 Mon Oct 23 13:11:27 2006
+++ pear/Text_Wiki/Text/Wiki/Parse/Creole/Preformatted.php Wed Feb 7 13:40:16 2007
@@ -12,7 +12,7 @@
*
* @license LGPL
*
- * @version $Id: Preformatted.php,v 1.1 2006/10/23 13:11:27 mic Exp $
+ * @version $Id: Preformatted.php,v 1.2 2007/02/07 13:40:16 mic Exp $
*
*/
@@ -51,9 +51,16 @@
function process(&$matches)
{
+ // > any line consisting of only indented three closing curly braces
+ // > will have one space removed from the indentation
+ // > -- http://www.wikicreole.org/wiki/AddNoWikiEscapeProposal
+ /*$find = "/\n( *) }}}/";
+ $replace = "\n$1}}}";
+ $matches[1] = preg_replace($find, $replace, $matches[1]);*/
+
$token = $this->wiki->addToken(
$this->rule,
- array('text' => htmlentities($matches[1]))
+ array('text' => $matches[1])
);
return "\n\n" . $token . "\n\n";
}