Subject: | Lists Not Properly Nested |
Date: | Thu, 28 Feb 2008 11:09:23 -0800 |
To: | bug-Text-Trac [...] rt.cpan.org |
From: | "David E. Wheeler" <dwheeler [...] cpan.org> |
Nested HTML lists should be like this:
<ul>
<li>foo
<ul>
<li>bar</li>
</ul>
</li>
</ul>
Not like this:
<ul>
<li>foo</li>
<ul>
<li>bar</li>
</ul>
</ul>
The latter is invalid, and is unfortunately the pattern used by
Text::Trac. The same issue exists for ordred lists. The attached patch
updates the tests to demonstrate the issue.
--- t/01-text-trac.t 2008-02-28 11:01:32.000000000 -0800
+++ t/01-text-trac.t 2008-02-28 11:06:33.000000000 -0800
@@ -124,9 +124,9 @@
* list 2-2
--- expected
<ul><li>list 1-1</li>
-<li>list 1-2</li>
+<li>list 1-2K_
<ul><li>list 2-1</li>
-<li>list 2-2</li></ul></ul>
+<li>list 2-2</li></ul></li></ul>
### ol test
--- input
@@ -136,9 +136,9 @@
a. list a-2
--- expected
<ol start="1"><li>list 1-1</li>
-<li>list 1-2</li>
+<li>list 1-2
<ol class="loweralpha"><li>list a-1</li>
-<li>list a-2</li></ol></ol>
+<li>list a-2</li></ol></li></ol>
### blockauote test
--- input
Thanks,
David