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

Wrong heading numbers in PDF export when setting numbers on h1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 16.1.0
    • Export - PDF
    • None
    • Firefox 123.0.1, Chromium 122.0.6261.111
    • Unknown

    Description

      Steps to reproduce:

      Create a page

      = Heading 1 =
      
      = Heading 2 =
      
      (% data-numbered-headings-start="5" style="--numbered-headings-start: 4;" %)
      = Heading 5 =
      
      = Heading 6 =
      

      Enable heading numbering and export it to PDF using client-side PDF export in Firefox.

      Expected result:

      Heading 5 has number 5 in the export.

      Actual result:

      Heading 5 has number 4 in the export, "Heading 6" has number 5.

      I also couldn't reproduce this issue when setting the number on a subheading.

      Attachments

        Activity

          People

            Unassigned Unassigned
            MichaelHamann Michael Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: