cvs: pear /Text_Wiki/Text/Wiki/Rule list.php
| From: | Paul Jones | Date: | Fri, 21 May 2004 21:35:48 +0000 |
| Subject: | cvs: pear /Text_Wiki/Text/Wiki/Rule list.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-19749@lists.php.net to get a copy of this message | ||
pmjones Fri May 21 17:35:48 2004 EDT
Modified files:
/pear/Text_Wiki/Text/Wiki/Rule list.php
Log:
no longer need to smash list items together on sequential lines. you can have any number of blank
newlines between list items and stay in the same list. this improves source readability. however,
if you start a line with a non-* non-# character non-whitespace character, that counts as a new
paragraph.
http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Rule/list.php?r1=1.3&r2=1.4&ty=u
Index: pear/Text_Wiki/Text/Wiki/Rule/list.php
diff -u pear/Text_Wiki/Text/Wiki/Rule/list.php:1.3 pear/Text_Wiki/Text/Wiki/Rule/list.php:1.4
--- pear/Text_Wiki/Text/Wiki/Rule/list.php:1.3 Sun May 2 19:16:46 2004
+++ pear/Text_Wiki/Text/Wiki/Rule/list.php Fri May 21 17:35:48 2004
@@ -16,7 +16,7 @@
// | Authors: Paul M. Jones <pmjones@ciaweb.net> |
// +----------------------------------------------------------------------+
//
-// $Id: list.php,v 1.3 2004/05/02 23:16:46 pmjones Exp $
+// $Id: list.php,v 1.4 2004/05/21 21:35:48 pmjones Exp $
/**
@@ -25,8 +25,9 @@
* a bulleted or numbered list. In short, if a line starts with '* ' then
* it is a bullet list item; if a line starts with '# ' then it is a
* number list item. Spaces in front of the * or # indicate an indented
-* sub-list. The list items must be on sequential lines (no blank lines
-* between them) -- a blank line indicates the beginning of a new list.
+* sub-list. The list items must be on sequential lines, and may be
+* separated by blank lines to improve readability. Using a non-* non-#
+* non-whitespace character at the beginning of a line ends the list.
*
* @author Paul M. Jones <pmjones@ciaweb.net>
*
@@ -50,7 +51,7 @@
*
*/
- var $regex = '/\n((\*|#) .*\n)(?! {0,}(\*|#))/Us';
+ var $regex = '/\n((\*|#) .*\n)(?! {0,}(\*|#|\n))/Us';
/**