https://bugs.documentfoundation.org/show_bug.cgi?id=102849

Julien Nabet <serval2...@yahoo.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
                 CC|                            |serval2...@yahoo.fr
     Ever confirmed|0                           |1

--- Comment #3 from Julien Nabet <serval2...@yahoo.fr> ---
Code pointer:
filter/source/xslt/odf2xhtml/export/xhtml/body.xsl

By doing some tests, "Titre principal" uses this part:
http://opengrok.libreoffice.org/xref/core/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl#2803

The good headers this one:
http://opengrok.libreoffice.org/xref/core/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl#1204

headers are created when matching text:h
1174         <xsl:template match="text:h">

unzipping odt and reformating it, we got this:
      <text:p text:style-name="Title">Titre principal</text:p>
      <text:p text:style-name="P1" />
      <text:h text:style-name="Heading_20_1" text:outline-level="1">Titre
1</text:h>
      <text:p text:style-name="P1" />
      <text:p text:style-name="P1">para</text:p>
      <text:p text:style-name="P1" />
      <text:h text:style-name="Heading_20_2" text:outline-level="2">Titre
2</text:h>
      <text:p text:style-name="P1" />
      <text:p text:style-name="P1">para</text:p>
...
Notice "text:p" for "Titre principal"

Just my 2 cents because I know too few about xsl.
Anyway, I confirm this on pc Debian x86-64 with master sources updated today.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to