Issue Details (XML | Word | Printable)

Key: DOXIA-96
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Vincent Siveton
Reporter: Henning Schmiedehausen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven Doxia

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

Created: 24/Jan/07 04:19 PM   Updated: 13/Apr/09 03:09 PM   Resolved: 27/Jan/07 07:18 AM
Component/s: Core
Affects Version/s: 1.0-alpha-8
Fix Version/s: 1.0-alpha-9

Time Tracking:
Not Specified

File Attachments: 1. Text File macro.patch (0.7 kB)



 Description  « Hide

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.



Henning Schmiedehausen added a comment - 27/Jan/07 05:03 AM

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


Vincent Siveton added a comment - 27/Jan/07 07:18 AM

Applied and add a test case in site renderer