Maven Doxia

Doxia generates different XHTML for the same xdoc code

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0-alpha-8
  • Fix Version/s: 1.0-alpha-9
  • Component/s: Core
  • Labels:
    None
  • Number of attachments :
    0

Description

Consider the following xdoc code:

<section name="1">
<subsection name="s1">
<p>p1</p>
<ul>
<li>l1</li>
</ul>
</subsection>
<subsection name="s2">
<p>p2</p>
<ul>
<li>l1</li>
</ul>
</subsection>
</section>

This renders to the following XHTML code:

<a name="1"></a><div class="section"><h2>1</h2>
<a name="s1"></a><div class="section"><h3>s1</h3>
<p>p1</p>
<ul><li>l1</li></ul>
</div>
<a name="s2"></a><div class="section"><h3>s2</h3>
p2
<ul><li>l1</li></ul>
</div>
</div>

Please not the missing <p> </p> around 'p2'.

Issue Links

Activity

Hide
Wendy Smoak added a comment -

This looks like the same thing as http://jira.codehaus.org/browse/MSITE-153.

Show
Wendy Smoak added a comment - This looks like the same thing as http://jira.codehaus.org/browse/MSITE-153.
Hide
Vincent Siveton added a comment -

Already fixed

Show
Vincent Siveton added a comment - Already fixed
Hide
Henning Schmiedehausen added a comment -

Nah. I don't believe you.

I just fetched the Doxia HEAD, built it and the issue is not only still there but for the fun of it I've also opened DOXIA-93, DOXIA-94, DOXIA-95 and DOXIA-96 just to show you that this thing still has not just "a few bugs".

Show
Henning Schmiedehausen added a comment - Nah. I don't believe you. I just fetched the Doxia HEAD, built it and the issue is not only still there but for the fun of it I've also opened DOXIA-93, DOXIA-94, DOXIA-95 and DOXIA-96 just to show you that this thing still has not just "a few bugs".
Hide
Stefan Broetz added a comment -

Henning, I was able to workaround this issue by modifying the xdoc list items in the following way:

<ul>
<li>
<p>Bla bla bla</p>
</li>
</ul>

Note the additional paragraph tag around each list item content. This may or may not work with HEAD, but it seems to work for Maven 2.0.4 and its dependencies (at least for me...)

Show
Stefan Broetz added a comment - Henning, I was able to workaround this issue by modifying the xdoc list items in the following way: <ul> <li> <p>Bla bla bla</p> </li> </ul> Note the additional paragraph tag around each list item content. This may or may not work with HEAD, but it seems to work for Maven 2.0.4 and its dependencies (at least for me...)
Hide
Vincent Siveton added a comment -

Henning, why don't you trust me? (

We have several test cases in site-renderer to demonstrate that this issue was solved

https://svn.apache.org/repos/asf/maven/doxia/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java

Show
Vincent Siveton added a comment - Henning, why don't you trust me? ( We have several test cases in site-renderer to demonstrate that this issue was solved https://svn.apache.org/repos/asf/maven/doxia/trunk/doxia-site-renderer/src/test/java/org/apache/maven/doxia/siterenderer/DefaultSiteRendererTest.java

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: