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

Support styling of list items in syntax 2.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 2.6 RC2
    • {Unused} Rendering 2.0
    • None
    • Unknown

    Description

      If you have list items

      * list item 1
      * list item 2
      

      You cannot apply a style on the <li> element.

      The following

      (% style="border: 1px" %)
      * list item 1
      * list item 2
      

      Applies it on the <ul> element

      The possible syntax could be:

      (% style="border: 1px" %)* list item 1
      * list item 2
      

      The following code in:

      http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki-rendering-api/src/main/java/org/xwiki/rendering/internal/renderer/xhtml/XHTMLChainingRenderer.java

          /**
           * {@inheritDoc}
           * 
           * @see AbstractChainingPrintRenderer#beginListItem()
           */
          @Override
          public void beginListItem()
          {
              getXHTMLWikiPrinter().printXMLStartElement("li");
          }
      

      should have "parameters" as a variable in the call to printXMLStartElement

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              ludovic Ludovic Dubost
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: