Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
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 :
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.
This is the fairly trivial (and obvious) patch. Please apply before releasing the next version of the doxia-core.