Bug 99630 - LO5 HTML editor does not split/merge lines in HTML to fit max line size (as done in LO3 and LO4)
Summary: LO5 HTML editor does not split/merge lines in HTML to fit max line size (as d...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.2.2 release
Hardware: All Linux (All)
: low normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:html
Depends on:
Blocks: (X)HTML-Export
  Show dependency treegraph
 
Reported: 2016-05-02 12:53 UTC by matta2006
Modified: 2023-04-10 03:18 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Files (1.03 KB, application/x-bzip)
2016-05-02 12:53 UTC, matta2006
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matta2006 2016-05-02 12:53:57 UTC
Created attachment 124790 [details]
Files

How to reproduce
================
1) Start LO5 Web/HTML editor
2) Open file Test_GeneWolfeQuote-OriginalLO4.html
3) Save as to a new file (here Test_GeneWolfeQuote-OriginalLO5.html).


File diff
=========
--- Test_GeneWolfeQuote-OriginalLO4.html	2016-05-02 14:33:34.000000000 +0200
+++ Test_GeneWolfeQuote-OriginalLO5.html	2016-05-02 14:34:07.000000000 +0200
@@ -3,23 +3,29 @@
 <head>
 	<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
 	<title></title>
-	<meta name="generator" content="LibreOffice 4.3.3.2 (Linux)"/>
+	<meta name="generator" content="LibreOffice 5.1.2.2.0 (Linux)"/>
 	<meta name="created" content="00:00:00"/>
-	<meta name="changed" content="2016-05-02T14:33:30.843347257"/>
+	<meta name="changed" content="00:00:00"/>
+	<meta name="created" content="00:00:00">
+	<meta name="changed" content="2016-05-02T14:33:30.843347257">
 	<style type="text/css">
 		p { color: #000000 }
 	</style>
 </head>
-<body lang="en-IE" text="#000000" dir="ltr" style="background: transparent">
+<body lang="en-IE" text="#000000" dir="ltr">
 <p><font face="Liberation Sans, sans-serif">Adolescents are simply
 those people who haven't as yet chosen between childhood and
-adulthood.<br>For as long as anyone tries to hold on to the
+adulthood.<br/>
+For as long as anyone tries to hold on to the
 advantages of childhood - the freedom from responsibility,
 principally - while seeking to lay claim to the best parts of
 adulthood, such as independence, he is an adolescent.
-[...]<br>Eventually most people choose to be adults, or are forced
+[...]<br/>
+Eventually most people choose to be adults, or are forced
 into it. A very few retreat into childhood and never leave it
-again.<br>A large number remain adolescents for life.<br><i>(Gene
+again.<br/>
+A large number remain adolescents for life.<br/>
+<i>(Gene
 Wolfe)</i></font></p>
 </body>
 </html>
\ No newline at end of file


Issue
=====
In the body, LO5 is updating the code; here changing <br> to <br/> and adding a CR. (example "again.<br/>CR").
However, it does not update the following line, fitting to the max line size. In fact, it keeps the original splitted "<i>(GeneCR" while it should merge it with the next one, producing "<i>(Gene Wolfe)</i></font></p>CR".


The issue may seem only a minor code output... however editing the file multiple times and adding continuously new CR (without merging the following lines when possible) makes the output code really ugly.


I attach the two example files and I will be glad if you can fix it.
Comment 1 Buovjaga 2016-05-07 11:29:09 UTC
Reproduced.

64-bit, KDE Plasma 5
Build ID: 5.1.2.2 Arch Linux build-1
CPU Threads: 8; OS Version: Linux 4.5; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Comment 2 matta2006 2016-09-28 14:31:40 UTC
Any news about this?

The problem is still occurring with LO 5.2.
Comment 3 Xisco Faulí 2017-09-29 08:48:07 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2021-04-09 03:47:30 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2023-04-10 03:18:08 UTC
Dear matta2006,

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