Maven Doxia

Confluence: Nested list parsing is not generating correct events

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-alpha-10
  • Fix Version/s: 1.1.1
  • Component/s: Module - Confluence
  • Labels:
    None
  • Number of attachments :
    3

Description

Here's some input I've used (verified it works in Confluence):

# Item 1
## Item 2
##* Item 3
## Item 4
# Item 5
* Item 1
** Item 2
*** Item 3
** Item 4
* Item 5
* Item 6

This generates the following events: NL, LI, NL, LI, LI_, LI, LI_, LI, LI_, NL_, LI_, etc

It should have generated: NL, LI, NL, LI, LIST, LI, LI_, LIST_, LI_, etc

Activity

Hide
Kornel added a comment -

Path solves this issue.

Show
Kornel added a comment - Path solves this issue.
Hide
Lukas Theussl added a comment -

This patch is unfortunately unreadable, as it changes all the formatting. Please adhere to our coding conventions (http://maven.apache.org/developers/conventions/code.html), in particular: no tabs!

Show
Lukas Theussl added a comment - This patch is unfortunately unreadable, as it changes all the formatting. Please adhere to our coding conventions (http://maven.apache.org/developers/conventions/code.html), in particular: no tabs!
Hide
Kornel added a comment -

This patch should solve this problem. I have also added test case for heterogenous nested lists.

Show
Kornel added a comment - This patch should solve this problem. I have also added test case for heterogenous nested lists.
Hide
Lukas Theussl added a comment -

Patch applied in r773164. Thanks!

Show
Lukas Theussl added a comment - Patch applied in r773164. Thanks!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: