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

Support styling of list items in syntax 2.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.6 RC2
    • Fix Version/s: None
    • Component/s: {Unused} Rendering 2.0
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: