<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Export to XHTML incorrectly exports Heading style numbers"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=107696">107696</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Export to XHTML incorrectly exports Heading style numbers
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.3.2.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>grofaty@hotmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=133151" name="attach_133151" title="LibreOffice_screencast_of_export_to_XHTML_heading_style_numbering_problem.gif">attachment 133151</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=133151&action=edit" title="LibreOffice_screencast_of_export_to_XHTML_heading_style_numbering_problem.gif">[details]</a></span>
LibreOffice_screencast_of_export_to_XHTML_heading_style_numbering_problem.gif

Hi,
using the following LibreOffice on Windows 7:
======================
Version: 5.3.2.2
Build ID: 6cd4f1ef626f15116896b1d8e1398b56da0d0ee1
CPU Threads: 3; OS Version: Windows 6.1; UI Render: default; Layout Engine:
new; 
Locale: sl-SI (sl_SI); Calc: group
======================

1. I renamed profile to make sure this is not my environment special problem
related to profile.
2. I created two lines of text and both of them created with "Heading 1" style.
3. Created Insert | Page Break (probably cause of the problem).
4. Created Table of Content.
5. LibreOffice works fine. First heading is numbered "1 First heading" and
second heading is correctly numbered "2 Second headign". Now export content of
LibreOffice Writer document to XHTML.
6. Now look into browser and there is correct numbering for "1 First heading",
but wrong numbering with "3 Second heading".
7. If going back to LibreOffice we can see under the Table of Content it is new
line with "Heading 1" style that has zero effect in LibreOffice document, but
when exported to XHTML then it has effect on numbering.
8. Changing this dummy line style from "Heading 1" style to "Default" style and
re-exporting the file and problem is fixed.

It looks like export to XHTML has some bug when exporting.

I have recorded the screencast (gif file video). Open the file in gif viewer
like web browser to see the screencast. If you will open file in Firefox I
suggest to press F11 to display browser in full screen mode.

ADDITIONAL TEST (not seen on screencast) - EXPORT TO PDF
1. Set in dummy line style back to "Heading 1".
2. Export to PDF and numbering of "2 Second heading" is correct.
This indicate that source of the problem may be the XHTML export.

Thanks</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>