Maven Doxia

Confluence ParagraphBlockParser does not offer lines to other parsers

Details

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

Description

Confluence ParagraphBlockParser does not offer lines to other parsers. There is a TODO in the source code. Test cases would include

{anchor:before}
h1. Section Title

should render the anchor in a separate paragraph, and

A paragraph
* with nested list
* items
should render as a list....

A paragraph

  • with nested list
  • items
    should render as a list....

Activity

Hide
Dave Syer added a comment -

Attached a patch for paragraph broken by list (paragraph-delegation). Also deals with paragraph broken by heading and by figure. Other possibilities exist (e.g. broken by verbatim), but these would seem to be the most useful.

(Also fixes an unreported bug with list items carried over multiple lines, since this is a related problem, and DOXIA-181 couldn't be fixed without fixing that one.)

Show
Dave Syer added a comment - Attached a patch for paragraph broken by list (paragraph-delegation). Also deals with paragraph broken by heading and by figure. Other possibilities exist (e.g. broken by verbatim), but these would seem to be the most useful. (Also fixes an unreported bug with list items carried over multiple lines, since this is a related problem, and DOXIA-181 couldn't be fixed without fixing that one.)
Hide
Lukas Theussl added a comment -

Patch applied, thanks!

Show
Lukas Theussl added a comment - Patch applied, thanks!

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: