[ http://issues.apache.org/jira/browse/FOR-680?page=all ]

Sjur N. Moshagen updated FOR-680:
---------------------------------

    Attachment: updated-wiki-patch.txt

Here's a patch that actually work as intended. I did 'svn up' before creating 
the patch - still, my previous patch applied by Ross did not show up. The patch 
therefore patches the code as it was *before* my first patch.

I have also added an entry to the plugin's status.xml file. Please change as 
needed/wanted.

The problem with the first patch did not show up with the simple test cases 
found in the example documentation. The following are more complex lists 
(jspwiki fragments) that will display the problem if it ever arises again:

Bulleted list:

* 1 - text     = make a bulleted list item with ''1 - text''
* 2 - first level, second item
** 2.1 - next level, first item
** 2.2 - next level - use the numbering to track the level and item nesting
** 2.3 - test
** 2.4 - test
* 3 - test
* 4 - test
** 4.1 - test
** 4.2 - test
*** 4.2.1 - third and final level, first item
*** 4.2.2 - test
*** 4.2.3 - test
*** 4.2.4 - test
** 4.3 - test
* 5 - test

Numbered list:

# 1 - text     = make a numbered list item with ''1 - text''
# 2 - first level, second item
## 2.1 - next level, first item
## 2.2 - next level - use the numbering to track the level and item nesting
## 2.3 - test
## 2.4 - test
# 3 - test
# 4 - test
## 4.1 - test
## 4.2 - test
### 4.2.1 - third and final level, first item
### 4.2.2 - test
### 4.2.3 - test
### 4.2.4 - test
## 4.3 - test
# 5 - test


> The jspwiki parser renders nested lists invalid
> -----------------------------------------------
>
>          Key: FOR-680
>          URL: http://issues.apache.org/jira/browse/FOR-680
>      Project: Forrest
>         Type: Bug

>   Components: Plugin: input.wiki
>     Versions: 0.7
>  Environment: MacOS X 10.4.2, Java 1.4.2
>     Reporter: Sjur N. Moshagen
>  Attachments: updated-wiki-patch.txt, wiki-update-diff.txt
>
> Lists within lists are parsed into an invalid structure. The following input:
> !!!Test title
> Test list:
> * li1
> * li2
> ** li2a
> ** li2b
> ** li2c
> * li3
> comes out as the following xml:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" 
> "document-v11.dtd">
> <document>
> <header>
> <title>test</title>
> </header>
> <body>
> <section>
> <title>Test title</title>
> <p>Test list: </p>
>   <ul>
>     <li>li1 </li>
>     <li>li2 </li>
>       <ul>
>         <li>li2a </li>
>         <li>li2b </li>
>         <li>li2c </li>
>       </ul>
>     <li>li3 </li>
>   </ul>
> </section>
> </body>
> </document>
> Note that the inner <ul> is not within the preceding <li> as required by the 
> dtd, but inserted between to <li>s.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira