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

When a velocity macro contains html the converter should put the html macro markers inside the velocity macro itself

    XMLWordPrintable

Details

    • Unit
    • Unknown

    Description

      For example

      #macro(macro1)
      <div>
      #end
      #macro(macro2)
      </div>
      #end
      

      should give

      {{velocity}}
      #macro(macro1)
      {{html}}
      <div>
      {{/html}}
      #end
      #macro(macro2)
      {{html}}
      </div>
      {{/html}}
      #end
      {{/velocity}}
      

      instead of

      {{velocity}}
      {{html}}
      #macro(macro1)
      <div>
      #end
      #macro(macro2)
      </div>
      #end
      {{/html}}
      {{/velocity}}
      

      because when the velocity register the macro it loose the fact that the content contains html

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: