Details
-
Bug
-
Resolution: Fixed
-
Minor
-
1.8
-
None
-
Unit
-
Description
Not sure if this is due to the way I've setup my macro, but it seems like a macro name with a hyphen seems to fail. The components.xml file I have is the following (trimmed for brevity):
<component> <role>org.xwiki.rendering.macro.Macro</role> <role-hint>link-creator</role-hint> <implementation>org.foo.bar.LinkCreatorMacro</implementation> ... </component>
When I try to utilize this macro in my document, I put something like this:
{{link-creator foo="bar"}}foobar{{/link-creator}}
When I check the content variable (the String passed into the execute() method) of this macro, it seems to be set to everything from "foobar" till the end of the document (i.e. content = "foobar{{/link-creator}}").