cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml List.php
| From: | Paul Jones | Date: | Sat, 28 May 2005 21:17:32 +0000 |
| Subject: | cvs: pear /Text_Wiki/Text/Wiki/Render/Xhtml List.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-32194@lists.php.net to get a copy of this message | ||
pmjones Sat May 28 17:17:32 2005 EDT
Modified files:
/pear/Text_Wiki/Text/Wiki/Render/Xhtml List.php
Log:
as part of fixed bug 3959, "XHTML lists not rendered according W3C Standards" (where
a single newline is not enough to end a paragraph before a list) we now output
one less newline when a list is starting, since the parser returned an extra newline
when parsing.
http://cvs.php.net/diff.php/pear/Text_Wiki/Text/Wiki/Render/Xhtml/List.php?r1=1.6&r2=1.7&ty=u
Index: pear/Text_Wiki/Text/Wiki/Render/Xhtml/List.php
diff -u pear/Text_Wiki/Text/Wiki/Render/Xhtml/List.php:1.6
pear/Text_Wiki/Text/Wiki/Render/Xhtml/List.php:1.7
--- pear/Text_Wiki/Text/Wiki/Render/Xhtml/List.php:1.6 Sat Sep 25 15:05:14 2004
+++ pear/Text_Wiki/Text/Wiki/Render/Xhtml/List.php Sat May 28 17:17:32 2005
@@ -44,12 +44,14 @@
$css = $this->formatConf(' class="%s"', 'css_ul');
$html = "<ul$css>";
+ /*
// if this is the opening block for the list,
// put an extra newline in front of it so the
// output looks nice.
if ($level == 0) {
$html = "\n$html";
}
+ */
// done!
return $html;
@@ -77,12 +79,14 @@
$css = $this->formatConf(' class="%s"', 'css_ol');
$html = "<ol$css>";
+ /*
// if this is the opening block for the list,
// put an extra newline in front of it so the
// output looks nice.
if ($level == 0) {
$html = "\n$html";
}
+ */
// done!
return $html;