Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3673

Velocity info,error macro not converted correctly

    XMLWordPrintable

Details

    • 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

          Activity

            People

              tmortagne Thomas Mortagne
              hor Reto Hotz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: