[Libreoffice-bugs] [Bug 137783] EDITING: FORMATTING: excess character font code added when editing inside a paragraph.

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Nov 22 14:38:18 UTC 2020


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

--- Comment #11 from Ernest Bywater <ernest at bywater.net.au> ---
(In reply to Dieter from comment #10)
> Thank you for the files, but I still try to find out what the problem is. So
> you are talking about html-code itself? Because I can't see any problems if
> I compare html documents and odt documents. Since I only have a very basic
> knowledge about html-code I can't help.

G'day Dieter,

The issue is with the way LO 7 is adding html code when it saves as html.
Unlike earlier versions LO7 is adding additional html code to individual
characters when you make a later change within a paragraph. Take the 6th file
in the attachments, the first paragraph has the relevant html code for the
paragraph at the start of the paragraph as < p class = " western " style = "
margin-bottom : 0cm ; line-heigh t: 100% " > (spaces added to the code to stop
it running) while drawing the the rest of the required character format code
from the < style type = " text / css " > area of the < head > section. In the
past versions of LO when I enter the paragraph and make a change LO did not add
any extra html code within the paragraph as all of the text within the
paragraph would be as per the style applied to the paragraph. However, in LO 7,
for some reason, when I make a later change to the paragraph LO is adding in
character format code to the new text. This is shown in the html code of the
4th long paragraph where I changed the numbers where the html code now shows
as:

  3  <font color = " # 000000 " > < span style = " font-weight : normal " > 70
< / span >< / font > ,1 < font color = " # 000000 " > < span style = "
font-weight : normal " > 67 < / span >< / font >
words.

whereas what it should've done, and used to do, was include no extra html code
due to the paragraph being altered already having a style applied and the code
for that style already exists in the < style > area. The changed section
should've appeared without any extra html code to be just -  370,167 words.

If I go back to using LO 6 (yes, I found an old copy hanging around and tried
it) then the extra code isn't added as LO assume the change within the
paragraph is the same as the rest of the paragraph as set by the style.

Considering how often I make changes having to clean out such code additions by
hand is a real pain.

-- 
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/20201122/a1432dbc/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list