Bug 93320 - Saving bulleted lists as HTML produces empty list items and interspersed paragraphs
Summary: Saving bulleted lists as HTML produces empty list items and interspersed para...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:html
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2015-08-10 10:33 UTC by Matthew Darlison
Modified: 2023-04-08 03:25 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Source bulleted list document (9.80 KB, application/vnd.oasis.opendocument.text)
2015-08-10 10:33 UTC, Matthew Darlison
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Darlison 2015-08-10 10:33:08 UTC
Created attachment 117805 [details]
Source bulleted list document

When a plain bulleted list is exported to HTML, the result is incorrect, and is then rendered incorrectly (line break between bullet and text) in browsers.

The HTML export from the attached file is:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=windows-1252"/>
	<title></title>
	<meta name="generator" content="LibreOffice 5.0.0.5 (Windows)"/>
	<meta name="created" content="2015-08-07T17:52:16.680000000"/>
	<meta name="changed" content="2015-08-07T17:53:18.888000000"/>
	<style type="text/css">
		@page { margin: 2cm }
		p { margin-bottom: 0.25cm; line-height: 120% }
		h1 { margin-bottom: 0.21cm }
		h1.western { font-family: "Liberation Sans", sans-serif; font-size: 18pt }
		h1.cjk { font-family: "Microsoft YaHei"; font-size: 18pt }
		h1.ctl { font-family: "Mangal"; font-size: 18pt }
	</style>
</head>
<body lang="en-GB" dir="ltr">
<h1 class="western">This is a Test List</h1>
<ul>
	<li/>
<p style="margin-bottom: 0cm; line-height: 100%">Bullet 1</p>
	<li/>
<p style="margin-bottom: 0cm; line-height: 100%">Bullet 2</p>
	<li/>
<p style="margin-bottom: 0cm; line-height: 100%">Bullet 3</p>
</ul>
<p style="margin-bottom: 0cm; line-height: 100%"><br/>

</p>
</body>
</html>


The problem of anomalous behaviour may also go back further in time than indicated.
Comment 1 Buovjaga 2015-09-05 18:15:48 UTC
Adjusting summary as this is about a file produced with Save as and not export.
For me, the resulting file looks ok in Firefox 40 & IE 11.
What browser are you referring to?

Win 7 Pro 64-bit, Version: 5.0.1.2 (32-bit)
Build ID: 81898c9f5c0d43f3473ba111d7b351050be20261
Locale: fi-FI (fi_FI)
Comment 2 Matthew Darlison 2015-09-09 14:21:37 UTC
I agree with the change from export to Save As.

The problem is in the structure of the underlying HTML - a list item should be enclosed with in <li> and </li>, and not in a paragraph following it that uses an inline style directive to override the vertical offset that most browsers would otherwise introduce.

This appears to render correctly when left "as is", but removal or modification of the styles reveals the underlying incorrectly marked-up text.
Comment 3 Buovjaga 2015-09-09 14:25:33 UTC
Ok you are right.
Comment 4 QA Administrators 2016-09-20 10:29:58 UTC Comment hidden (obsolete)
Comment 5 Matthew Darlison 2016-11-18 19:35:40 UTC
Bug is confirmed as remaining on Windows 7:
Version: 5.2.3.3 (x64)
Build ID: d54a8868f08a7b39642414cf2c8ef2f228f780cf
CPU Threads: 8; OS Version: Windows 6.1; UI Render: default; 
Locale: en-GB (en_GB); Calc: group
Comment 6 QA Administrators 2017-11-19 19:14:59 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2021-04-07 03:53:21 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2023-04-08 03:25:27 UTC
Dear Matthew Darlison,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug