Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-552

Allow other separator than white space to end short image: syntax

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 10.11.1
    • Syntax - xwiki/2.2
    • None
    • Unknown

    Description

      When using the prepackaged icons syntax ('image:icon:accept'), it's mandatory that you use a space (' ') after the syntax in order to display the image.

      For example:

      image:icon:bullet_green
      
      |image:icon:bullet_green|B|image:icon:bullet_red
      |image:icon:bullet_green |B|image:icon:bullet_red 
      |[[image:icon:bullet_green]]|B|[[image:icon:bullet_red]]
      |[[image:icon:bullet_green]] |B|[[image:icon:bullet_red]] 
      
      (((image:icon:bullet_green)))
      (((image:icon:bullet_green )))
      
      (%%)image:icon:bullet_green(%%)
      (%%)image:icon:bullet_green (%%)
      

      the following

      |image:icon:bullet_green|
      (((image:icon:bullet_green)))
      (%%)image:icon:bullet_green(%%)
      

      won't work. They will display:

      bullet_green|B|image:icon:bullet_red
      bullet_green)))
      bullet_green(%%)
      

      You need to mandatory add a space, like:

      |image:icon:bullet_green |
      (((image:icon:bullet_green )))
      (%%)image:icon:bullet_green (%%)
      

      see image for the result and XAR if you want to test the behaviour.

      I would have expected that the tables, divs and span syntax to be identified as separators and be applied. The image: behaviour acts like an exception on using tables, etc. You need to know this exception in order to make the syntax work.

      Attachments

        Activity

          People

            Unassigned Unassigned
            evalica Ecaterina Moraru (Valica)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: