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

Toc macro is not rendered with proper indentation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 3.0
    • Macro - Toc
    • None
    • N/A
    • N/A

    Description

      The summary generated by the toc macro is not properly intended.

      Sample good input:

      {{toc}}{{/toc}}
      
      = Chapter 1 =
      
      = Chapter 2 =
      
      == Section 1 ==
      
      == Section 2 ==
      
      === Paragraph 1 ===
      
      === Paragraph 2 ===
      

      Sample good output: good.png

      Sample bad input:

      {{toc}}{{/toc}}
      
      == Chapter 1 ==
      
      == Chapter 2 ==
      
      ==== Section 1 ====
      
      ==== Section 2 ====
      
      ====== Paragraph 1 ======
      
      ====== Paragraph 2 ======
      

      Sample bad output: bad.png

      Attachments

        1. bad.png
          4 kB
          Viet Nguyen Tien
        2. good.png
          4 kB
          Viet Nguyen Tien

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              viet.nguyen Viet Nguyen Tien
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: