diff options
author | sheep@ghostwheel <sheep@ghostwheel> | 2009-03-15 21:15:44 (GMT) |
---|---|---|
committer | sheep@ghostwheel <sheep@ghostwheel> | 2009-03-15 21:15:44 (GMT) |
commit | 435cfc4df45f4040e2da0ec6489f4d7f4d26ba00 (patch) | |
tree | 5a2d3e7ec59b378a25207442996f636438c995fa | |
parent | 3c4320990e35da851b5faac0b5efb06f74724689 (diff) |
fix a bug in lists + test
-rwxr-xr-x | hatta.py | 2 | ||||
-rwxr-xr-x | test.py | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -831,7 +831,7 @@ class WikiParser(object): yield '<ul>' level += 1 while nest < level: - yield '</li></ul></li>' + yield '</li></ul>' level -= 1 content = line.lstrip().lstrip('*').strip() yield '<li>%s%s' % ( @@ -145,6 +145,11 @@ u"""Here's a quote: > Here is another //quote//: >> A quote **within a quote normal text""": u"""<p>Here's a quote:</p><blockquote>Here is another <i>quote</i>:<blockquote>A quote <b>within a quote</b></blockquote></blockquote><p>normal text</p>""", +#-------------------------------------------------------------------- +u"""* sample list +** sublist +*** sub-sub-list with **bold +* list""": u"""<ul><li>sample list<ul><li>sublist<ul><li>sub-sub-list with <b>bold</b></li></ul></li></ul><li>list</li></ul>""", } def test_test_cases(self): |