Maven Doxia

Doxia xdoc chokes on macros and pushes </macro> to the output

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 :
    1

Description

Consider the following xdoc file:

<?xml version="1.0" encoding="UTF-8"?>
<document>
<properties>
<title>test1</title>
</properties>

<body>
<section name="section name">
<macro id="news" count="3" />
</section>
</body>
</document>

The 'news' macro is the Doxia macro described on http://velocity.apache.org/site/tools/velocity-site-news-extension/index.html

This results in the following content:

<a name="section name"></a><div class="section"><h2>section name</h2>
[... Macro output omitted ...]</macro>
</div>

Please note the additional </macro> that somehow got into the output. This is obviously no valid XHTML.

Activity

Hide
Henning Schmiedehausen added a comment -

This is the fairly trivial (and obvious) patch. Please apply before releasing the next version of the doxia-core.

Show
Henning Schmiedehausen added a comment - This is the fairly trivial (and obvious) patch. Please apply before releasing the next version of the doxia-core.
Hide
Vincent Siveton added a comment -

Applied and add a test case in site renderer

Show
Vincent Siveton added a comment - Applied and add a test case in site renderer

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: