[Libreoffice-bugs] [Bug 137783] HTML-EXPORT: Excess character font code added when editing inside a paragraph
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Nov 23 09:20:13 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=137783
--- Comment #14 from Ernest Bywater <ernest at bywater.net.au> ---
(In reply to Dieter from comment #13)
> Thanks again for clarification. As I said before; I'm not really an expert
> in reading html-code. And even if I confirm the behaviour, I'm not able to
> assess, if it is a bug or the expected behaviour. I hope somebody else can
> help.
G'day Dieter,
While not an HTML expert either, I am familiar enough with it to work it quite
well and I understand what is happening. However, the problem is NOT an HTML
one, but it is an issue with the LO 7 code itself in that LO Writer is
assigning the format code to the individual characters and words of the text at
the time the text being added to the paragraph when an amendment is made to the
paragraph at a later date. This is a bug as LO should NOT be assigning any
format code to the added text or characters as part of the typing of the text.
Such extra text should be seen by LO and Writer as being part of the paragraph
and inheriting the existing style code of the paragraph unless I take extra
actions to apply attributes to the text by selecting them. While in normal LO
operations such format code is not visible the conversion to HTML is making
this additional format code visible.
In the specific example mentioned in my previous comment all of the text in the
paragraph carries the attributes of the paragraph style in the 'body' and
'css' data for the style. Those attribute include the text color of #000000,
font weight of normal, font family of Palatino Linotype, and font size of 10pt
as those are the default attributes for the 'Default' paragraph style and the
attributes for the 'default text' as defined in LO 7. Yet when the paragraph
text is being amended with LO 7 set to those 'default' text attributes LO 7 is
adding character format code to the new characters of the font color and the
font weight as if I was applying attributes to change the text from the default
attributes to something else but being done by LO 7 instead of me using the
attributes options.
LO 7 Writer should NOT be attaching any format code to the text or individual
characters of a paragraph amendment at the time of being typed at all as ALL
text being typed should be as per the default text attributes for the paragraph
UNTIL such time as I, the operator, highlight text and assign another attribute
that is NOT a default attribute to that text.
This problem is within the LO 7 code. It may be within Writer only or in other
components as well, but I only notice it in Writer as that's the only component
I convert to html.
Interestingly, the more we discuss this the deeper insight I get into what is
happening, but not how it's happening within the LO code. While you may not be
the one to find and fix where this is happening within the LO 7 Writer code, I
hope someone else on the team does know, or can find out, where this is
happening and stop it.
--
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/20201123/4e94f7d2/attachment.htm>
More information about the Libreoffice-bugs
mailing list