![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| mic Sat May 26 17:33:01 2007 UTC Modified files: /pear/Text_Wiki/Text/Wiki Creole.php Log: removed notice about undefined index http://cvs.php.net/viewvc.cgi/pear/T...&diff_format=u Index: pear/Text_Wiki/Text/Wiki/Creole.php diff -u pear/Text_Wiki/Text/Wiki/Creole.php:1.8 pear/Text_Wiki/Text/Wiki/Creole.php:1.9 --- pear/Text_Wiki/Text/Wiki/Creole.php:1.8 Thu Mar 1 22:00:29 2007 +++ pear/Text_Wiki/Text/Wiki/Creole.php Sat May 26 17:33:01 2007 @@ -17,7 +17,7 @@ * * @link http://pear.php.net/package/Text_Wiki * - * @version CVS: $Id: Creole.php,v 1.8 2007/03/01 22:00:29 mic Exp $ + * @version CVS: $Id: Creole.php,v 1.9 2007/05/26 17:33:01 mic Exp $ * */ @@ -61,6 +61,7 @@ 'Break', 'Raw', 'Footnote', + 'Table', 'Newline', 'Blockquote', 'Newline', @@ -71,7 +72,7 @@ 'Center', 'Horiz', 'List', - 'Table', + //'Table', 'Address', 'Paragraph', 'Superscript', @@ -99,6 +100,7 @@ function checkInnerTags(&$text) { $started = array(); + $i = false; while (($i = strpos($text, $this->delim, $i)) !== false) { $j = strpos($text, $this->delim, $i + 1); $t = substr($text, $i + 1, $j - $i - 1); @@ -107,6 +109,9 @@ $type = $this->tokens[$t][1]['type']; if ($type == 'start') { + if (empty($started[$rule])) { + $started[$rule] = 0; + } $started[$rule] += 1; } else if ($type == 'end') { @@ -118,6 +123,22 @@ } return ! (count($started) > 0); } + + function restoreRaw($text) { + while (($i = strpos($text, $this->delim, $i)) !== false) { + $j = strpos($text, $this->delim, $i + 1); + $t = substr($text, $i + 1, $j - $i - 1); + $rule = strtolower($this->tokens[$t][0]); + + if ($rule == 'raw') { + $text = str_replace($this->delim. $t. $this->delim, $this->tokens[$t][1]['text'], $text); + } + else { + $i = $j + 1; + } + } + return $text; + } } ?> | |||
| Featured Websites | ||||
|
![]() |
| Tags: creolephp, cvs, pear, text_wikitextwiki |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cvs: pear /Text_Wiki/Text/Wiki/Parse/Creole List.php | Michele Tomaiuolo | Pear | 0 | 05-27-2007 7:47 PM |
| cvs: pear /Text_Wiki/Text/Wiki/Parse/Creole Url.php | Michele Tomaiuolo | Pear | 0 | 05-27-2007 7:47 PM |
| cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml Url.php | Michele Tomaiuolo | Pear | 0 | 05-27-2007 7:47 PM |
| cvs: pear /PHP_CodeSniffer/CodeSniffer/DocGenerators Text.php | Greg Sherwood | Pear | 0 | 05-27-2007 7:46 PM |
| cvs: pear /Image_Text/Image Text.php | Stoyan Stefanov | Pear | 0 | 05-20-2007 7:42 PM |
| Featured Websites | ||||
|