[Libreoffice-bugs] [Bug 76021] FORMATTING: Libre Office Writer: save As HTML results in interlaced <strike> and <span> tags

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 31 11:10:15 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=76021

Tyco72 <btv2000 at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |btv2000 at hotmail.com

--- Comment #18 from Tyco72 <btv2000 at hotmail.com> ---
Created attachment 163803
  --> https://bugs.documentfoundation.org/attachment.cgi?id=163803&action=edit
.odt document with abnormal line breaks and span tags

I have the same issue, tested with LO 6.3.6 and 6.4.5. It is a critical bug
when you have to paste the content for example in the Wordpress and have to
work with  HTML!
The code looks messed up as shown in the comment #11, and the pasted text looks
broken in a lot of rows with few characters each one (in the preformatted block
of Wordpress). It makes the LO documents useless.
I use the .odt format. In the content.xml file, the text is broken in hundred
of mini-rows, filled up with tags "<text:span text..." and "<style:style
style:name=...." example:

<text:span text:style-name="T1">P</text:span>
<text:span text:style-name="T2">rob</text:span>
<text:span text:style-name="T3">a</text:span>
<text:span text:style-name="T2">bly, </text:span>
<text:span text:style-name="T1">collisions with other galaxies have
</text:span>
<text:span text:style-name="T2">already happened to the Milky Way in the past,
in</text:span>
<text:span text:style-name="T1">corporating </text:span>

It is a problem of LibreOffice. I have attached the document "sample3.odt"

I don't know exactly hot to reproduce the error, but it is a huge trouble. It
seems to happen more when editing an already saved document, inserting new text
among the rows, or modifying an existing sentence. 
HTML look so:

<p align="left"><span style="font-family: Arial, sans-serif;"><span
style="font-size: small;"><a
href="https://en.wikipedia.org/wiki/Andromeda_Galaxy"><b>Andromeda</b></a> is
the galaxy more near to ours, the Milky Way. It is about 2,5 millions of light
years from us (which is a little distance in the scale of universe). Andromeda
is a big Galaxy, bigger that the Milky Way. It has a diameter of 220.000 light
years and contains about <b>1000 billions of stars</b>.</span></span></p>
<p align="left"><span style="font-family: Arial, sans-serif;"><span
style="font-size: small;">In comparison, the Milky Way is 170.000 - 200.000
light years large and contains 100-400 billion stars.</span></span></p>
<p align="left"><span style="font-family: Arial, sans-serif;"><span
style="font-size: small;">The interesting part is that Andromeda is moving
towards us and in about 4,5 billions years Andromeda will collide with the
Milky Way. We can do nothing to stop this way! Collisions among galaxies are a
common event in the universe.</span></span></p>

I will check whether it happened also with older versions of LO. Probably it
didn't happened with LO 6.3.0 but  I can't be sure, because at that time I
didn't used HTML.

-- 
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/20200731/0e044091/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list