[Libreoffice-bugs] [Bug 133882] New: .odt HTML export: Missing "__RefHeading___Toc" anchor for Headlines when Tables are used
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Jun 10 22:08:22 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=133882
Bug ID: 133882
Summary: .odt HTML export: Missing "__RefHeading___Toc" anchor
for Headlines when Tables are used
Product: LibreOffice
Version: 6.4.3.2 release
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: schwartz.jens.73 at googlemail.com
Description:
created an .odt, this includes
- index of headlines
- headlines inside tables (td>tr>td>h3...)
- headlines in body (h3)
when this is mixed in the document the HTML export is missing the
"__RefHeading___Toc" anchor inside the headline tag when headline is placed in
the SECOND variant - no matter in wich order they appear.
Eexample 1:
after index the 1st headline is in body:
<h3 class="western"><a name="__RefHeading___Toc3933_840939253"></a>Link
to Google (Test Non-TR)</h3>
this does now work for all headlines outside tables.
the following headlines inside tables do not get the RefHeading:
<table width="100%" cellpadding="6" cellspacing="0">
<col width="256*"/>
<tr>
<td width="100%" valign="top" style="border: 1px solid #000000;
padding: 0.1cm"><h3 class="western">
Link to Google (Test TR)</h3>
this is exactly the same inverse:
if the 1st appearance of a headline is inside the TD tag all this headlines get
the RefHeadin, but none of the body headline (outside tables) do so.
Steps to Reproduce:
1. create an .odt
2. create a headline
3. create a TOC
-- add some paragraphs to have good jump-view --
4. below the TOC create a headline
-- add some paragraphs to have good jump-view --
5. bleow create a table
6. in a cell create a headline
7. update the TOC
8. export to HTML
9. try out the links in TOC
--> you will find the TOC link to the 1st headline (non-table) after TOC (step
4) working (HTML includes RefHeading in <H> tag)
--> you will find the TOC link to the 2nd headline (table) after TOC (step 4)
not working (HTML does not include RefHeading in <H> tag)
10. built similar .odt but now 1st create a table after TOC and add a headline
there, and after table a headline in the body
--> you will find the TOC link to the 1st headline (table) after TOC working
(HTML includes RefHeading in <H> tag)
--> you will find the TOC link to the 2nd headline (non-table) after TOC not
working (HTML does not include RefHeading in <H> tag)
Actual Results:
TOC links in HTML export do not work for each 2nd variant of appearance of
headlines
Expected Results:
each TOC link should trigger a jump to the resp. headline
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 6.4.3.2 (x86)
Build-ID: 747b5d0ebf89f41c860ec2a39efd7cb15b54f2d8
CPU-Threads: 8; BS: Windows 10.0 Build 18363; UI-Render: Standard; VCL: win;
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
since this is an parsing/transformation issue I did not reset profile + did not
check OpenGL status
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200610/166dd478/attachment.htm>
More information about the Libreoffice-bugs
mailing list