cvs: pear /Text_Wiki/Text/Wiki/Rule list.php
| From: | Paul Jones | Date: | Sat, 22 May 2004 15:16:59 +0000 |
| Subject: | cvs: pear /Text_Wiki/Text/Wiki/Rule list.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-19760@lists.php.net to get a copy of this message | ||
pmjones Sat May 22 11:16:59 2004 EDT
Modified files:
/pear/Text_Wiki/Text/Wiki/Rule list.php
Log:
fixed bug 1384, list rule inaccurate. Have implemented the "display: inline" style fix
noted by Mike. Not really happy with this for the long term, but it will do for now. In future,
will attempt to rewrite the "list" rule to be more semantically accurate.
http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Rule/list.php?r1=1.5&r2=1.6&ty=u
Index: pear/Text_Wiki/Text/Wiki/Rule/list.php
diff -u pear/Text_Wiki/Text/Wiki/Rule/list.php:1.5 pear/Text_Wiki/Text/Wiki/Rule/list.php:1.6
--- pear/Text_Wiki/Text/Wiki/Rule/list.php:1.5 Fri May 21 19:06:48 2004
+++ pear/Text_Wiki/Text/Wiki/Rule/list.php Sat May 22 11:16:59 2004
@@ -16,7 +16,7 @@
// | Authors: Paul M. Jones <pmjones@ciaweb.net> |
// +----------------------------------------------------------------------+
//
-// $Id: list.php,v 1.5 2004/05/21 23:06:48 pmjones Exp $
+// $Id: list.php,v 1.6 2004/05/22 15:16:59 pmjones Exp $
/**
@@ -252,9 +252,11 @@
$pad = str_replace("\t", ' ', $pad);
// attempt XHTML compliance so that sub-lists are part
- // of a list item, not between list items
+ // of a list item, not between list items. this is not
+ // by any means perfect; the 'display' style is specifically
+ // for Internet Exploder.
if ($level > 0) {
- $pre = '<li style="list-style: none;">';
+ $pre = '<li style="list-style: none; display: inline;">';
$post = '</li>';
} else {
$pre = '';