[Libreoffice-bugs] [Bug 139949] New: Nesting up of sections when going from odt to html and back
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Wed Jan 27 21:14:24 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=139949
Bug ID: 139949
Summary: Nesting up of sections when going from odt to html and
back
Product: LibreOffice
Version: 7.0.4.2 release
Hardware: x86-64 (AMD64)
OS: Mac OS X (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: Philippe.Verkerk at univ-lille.fr
Description:
I want to prepare a Latin text with the corresponding vocabulary and
grammatical comments on the same page, with LO writer in order to have the
possibility of post editing. Text, vocab-list and comments are prepared by
other programs. To do that I prepare a template with three sections: one for
the text, the second for the vocab-list and the last. Then I repeat that group
of three sections on the next page.
To fill easily the sections, I convert the odt template to a html and recognize
the tags <div id="Texte">...</div> and <div id="Grammaire"> etc... where I have
to put my text, vocab and comments. Then, the last easy step consists in
loading the html file into LO Writer and save as odt. It works apparently fine.
EXCEPT that the sections are now NESTED. The third one is a sub-section of the
second. The fourth one and the fifth one are sub-sections of the third. And the
last one is a sub-section of the fifth.
This is the case with two pages, i.e. six sections. What will happen with 100
pages ?
Steps to Reproduce:
1. Create a odt file with three sections, in the attached example they are
called "Texte", "Grammaire" and "Definitions" (the text has a single column
format, while the two others have two columns). Copy these three sections at
the end of the document, they become "Section1", "Section2" and "Section3". The
structure of the sections is flat (see Sections_in_template.png). Save that odt
for reference.
2. Save as html this same file. Close that window.
3. Re-open the html file. Almost every thing seems OK (except for the header
and the footer that are not present on each page, but it is easily restored).
But looking at the structure of the sections they appear NESTED (see
Back_in_Writer.png), as if a closing tag </div> has escaped to the detection.
Actual Results:
Nested sections (see Back_in_Writer.png).
As if the html file contained
<div id="Grammaire">...
<div id="definitions">...
</div>
while it contains
<div id="Grammaire">...
</div>
<div id="definitions">...
</div>
Expected Results:
The same flat structure of the sections as in the original odt file (see
Sections_in_template.png)
Reproducible: Always
User Profile Reset: No
Additional Info:
As I save from odt to html and open again the html file in LO writer (even
doing nothing in between), I expect a structure of the sections similar to the
original one.
--
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/20210127/0464309a/attachment-0001.htm>
More information about the Libreoffice-bugs
mailing list