Bug 66609 - FILESAVE: second and subsequent lines of indented list item not indented in XHTML export
Summary: FILESAVE: second and subsequent lines of indented list item not indented in X...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:html
: 108727 137692 155477 (view as bug list)
Depends on:
Blocks: Bullet-Number-Outline-Lists (X)HTML-Export
  Show dependency treegraph
 
Reported: 2013-07-05 06:08 UTC by callow.mark
Modified: 2023-07-27 20:17 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Brief .odt whose xhtml export shows the problem (27.90 KB, application/vnd.oasis.opendocument.text)
2013-07-05 06:09 UTC, callow.mark
Details

Note You need to log in before you can comment on or make changes to this bug.
Description callow.mark 2013-07-05 06:08:06 UTC
The short .odt file I will attach contains a single section with a bullet list. Two of the items in the list is long and wrap to multiple lines. In an exported XHTML version (File->Export then choose xhtml), the second and subsequent lines of those items are aligned on the margin with the bullet instead of being indented and aligned with the first line as in the original document.
Comment 1 callow.mark 2013-07-05 06:09:42 UTC
Created attachment 82063 [details]
Brief .odt whose xhtml export shows the problem
Comment 2 Thomas van der Meulen [retired] 2013-07-05 07:30:39 UTC
Thank you for your bug report, I can reproduce this bug running LibreOffice ersion: 4.1.0.2.0
Build ID: 103a942746cfe346e87daab62acbd4268c38097on Mac osx 10.8.4. 

I can see that the first 1 is replaced with a 0 and that the line that is wraped to multiple lines is moved back.
Comment 3 callow.mark 2013-07-05 07:52:16 UTC
(In reply to comment #2)
> I can see that the first 1 is replaced with a 0 and that the line that is
> wraped to multiple lines is moved back.

In the original document from which I cut this fragment, the section numbers at this point are OK. So the 1 -> 0 problem may be something to do with fragment having been cut from a larger document.

Also please note bug #66312 that I filed about section numbers getting skipped (miscounted). The instance of 1->0 here may be the same bug as that. The focus for this bug should be on the second and subsequent lines being misaligned.
Comment 4 QA Administrators 2015-04-01 14:40:37 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2015-04-22 11:29:50 UTC
Reproduced with attachment 82063 [details].

Win 7 Pro 64-bit Version: 5.0.0.0.alpha0+ (x64)
Build ID: 211c12b9c64facd1c12f637a5229bd6a6feb032a
TinderBox: Win-x86_64@42, Branch:master, Time: 2015-04-18_01:51:17
Locale: fi_FI

Ubuntu 14.10 64-bit
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 6 Regina Henschel 2015-11-08 22:49:24 UTC
The paragraph inside the list item has a wrong margin-left and the css attribute text-indent is missing.

Currently it is:
style="margin-left:1.524cm;"
In this setting the value 1.524cm is the indent of the "text-body" paragraph and corresponds to the width of the chapter numbering.

But it should be:
style="margin-left:2.79cm;text-indent:-0.635cm"
In this setting the value 2.79cm is the indent set in numbering position and the value -0.635cm is the value to go back to get the alignment value 2.16cm in numbering position.

I see the error in Version: 5.1.0.0.alpha1+
Build ID: 2511a21841dd9dec735a53add8174e47d24deb88
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-10-13_23:26:46
Locale: de-DE (de_DE)
Comment 7 QA Administrators 2017-01-03 19:36:10 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2019-12-03 14:11:04 UTC Comment hidden (obsolete)
Comment 9 Stéphane Guillou (stragu) 2021-05-18 12:11:43 UTC
Reproduced in LO 7.2 Alpha0+

Interestingly, I don't see the beginning of the document in LO, but see everything in the export...

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 6b09276d157abada74e1a4989700139167207778
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-05-14_04:32:30
Calc: threaded
Comment 10 Stéphane Guillou (stragu) 2021-05-18 12:28:26 UTC
*** Bug 137692 has been marked as a duplicate of this bug. ***
Comment 11 QA Administrators 2023-06-24 03:14:31 UTC Comment hidden (obsolete)
Comment 12 Stéphane Guillou (stragu) 2023-07-27 20:16:57 UTC
*** Bug 108727 has been marked as a duplicate of this bug. ***
Comment 13 Stéphane Guillou (stragu) 2023-07-27 20:17:13 UTC
*** Bug 155477 has been marked as a duplicate of this bug. ***