Details
- 
    
Bug
 - 
    Resolution: Duplicate
 - 
    
Major
 - 
    None
 - 
    1.8.1
 - 
    None
 
- 
        Unknown
 - 
        
 
Description
I converted a page with velocity macros (info, error) from 1.5.2 xwiki/1.0 to 1.8.1 xwiki/2.0.
The conversion made 2 mistakes:
1) The link inside the #info macro was not converted correctly.
#info("For more infos see [Another Page|Another Page]")
was converted into:
{{velocity}}{{html wiki=true}}#info("For more infos see [Another Page|Another Page]"){{/html}}{{/velocity}}
instead of:
{{velocity}}{{html wiki=true}}#info("For more infos see [[Another Page >> Another Page]]"){{/html}}{{/velocity}}
2) Normal text between 2 macros was not honored:
#error("Some info text")
Some normal text
#error("Some error text")
This was converted to:
{{velocity}}{{html wiki=true}}#info("Some info text")
Some normal text
#error("Some error text"){{/html}}{{/velocity}}
instead of:
{{velocity}}{{html wiki=true}}#info("Some info text"){{/html}}{{/velocity}}
Some normal text
{{velocity}}{{html wiki=true}}#error("Some error text"){{/html}}{{/velocity}}
Attachments
Issue Links
- duplicates
 - 
                    
XWIKI-3391 Convert info, warning, error Velocity macros
-         
 - Closed
 
 -