karlosjota / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

add implicit <ul> if parsing encountered <li> tags without ol or ul #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
add this test to BasicFilterTest:
    public void testLiNoUl01() {
        assertEquals("\n" + "<ul><li>test1</li>\n<li>test2</li></ul>",
                wikiModel.render("<li>test1\n<li>test2", false));
    }
(maybe add newlines after/before <ul>/</ul> depending on the implementation)

What is the expected output? What do you see instead?
MediaWiki surrounds all <li> elements with an implicit <ul>

Original issue reported on code.google.com by nico.kru...@googlemail.com on 24 Oct 2012 at 3:06

GoogleCodeExporter commented 9 years ago
Commited r7519
Please check if this is ok for you.

Original comment by axelclk@gmail.com on 25 Oct 2012 at 6:26

GoogleCodeExporter commented 9 years ago
yes, thank you
(I also ported it to 3.1 in r7583)

Original comment by nico.kru...@googlemail.com on 26 Oct 2012 at 12:23