![]() |
|
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:22:41 2007 UTC Modified files: /pear/Text_Wiki/Text/Wiki/Parse/Creole List.php Log: removed notice about undefined variable http://cvs.php.net/viewvc.cgi/pear/T...&diff_format=u Index: pear/Text_Wiki/Text/Wiki/Parse/Creole/List.php diff -u pear/Text_Wiki/Text/Wiki/Parse/Creole/List.php:1.3 pear/Text_Wiki/Text/Wiki/Parse/Creole/List.php:1.4 --- pear/Text_Wiki/Text/Wiki/Parse/Creole/List.php:1.3 Thu Mar 1 22:00:29 2007 +++ pear/Text_Wiki/Text/Wiki/Parse/Creole/List.php Sat May 26 17:22:41 2007 @@ -22,7 +22,7 @@ * * @license LGPL * - * @version $Id: List.php,v 1.3 2007/03/01 22:00:29 mic Exp $ + * @version $Id: List.php,v 1.4 2007/05/26 17:22:41 mic Exp $ * */ @@ -42,7 +42,7 @@ * */ - var $regex = '/\n((\*[^\*]|\-[^\-\d]|\#[^\#]).*?)\n(?![\*\-#])/s'; + var $regex = '/\n((\* |\-[^\-\d\*\#]|\#[^\#\-\*]).*?)\n(?![\*\-#])/s'; /** * @@ -100,6 +100,10 @@ $list, PREG_SET_ORDER ); + + if (count($list) === 1 && $matches[0][0] === '*' && $matches[0][1] !== ' ' && strpos($matches[0], '*', 1)) { + return $matches[0]; + } // loop through each list-item element. foreach ($list as $key => $val) { @@ -149,7 +153,9 @@ // reset to the current (previous) list type so that // the new list item matches the proper list type. - $oldtype = $stack[$tmp - 1]; + if ($tmp) { + $oldtype = $stack[$tmp - 1]; + } // reset the item count for the popped indent level unset($itemcount[$tmp + 1]); | |||
| Featured Websites | ||||
|
![]() |
| Tags: cvs, listphp, pear |
| 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 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 /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 | ||||
|