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

--- Comment #9 from jvchbabu <[email protected]> ---
(In reply to Logan B from comment #7)
> I can safely replicate this bug using Word 2003 to create a .doc file and
> Word 2016 to create a .docx file where each contain a table that is 1 cell
> wide and 2 cells deep, where the first cell has a background colour.
> 
> When opening these files with LibreOffice Writer 5.3.0.3 and exporting as
> HTML, the background colour is added as a separate style attribute in the
> <td> so it appears as, for example:
> <td width="585" valign="top" bgcolor="#d0cece" style="background: #d0cece"
> style="border: 1px solid #00000a; padding-top: 0cm; padding-bottom: 0cm;
> padding-left: 0.2cm; padding-right: 0.19cm">
> The first style attribute is parsed by browsers, showing the background
> colour, and the second style attribute, containing the border colour and
> padding, is ignored.
> 
> I have attached the files produced by both versions of Word and the HTML
> output by LibreOffice.
> 
> When exporting a .odt created using LibreOffice Writer 5.3.0.3 and
> recreating the above table, the styles appear all in the same style
> attribute.

Logan B,

 In my case I  have html content which has table  and its background color and
boarders. We are trying to generate word(doc and docx files)using this html and
observed the below :

Doc output(.doc) :
------------
 Boarders are completely invisible, table is left aligned and background colors
are lost .

Docx output:
 Boarders are completely visible but table is left aligned and background
colors are lost.

You seems to be tried in reverse of my use case, creating a doc and docx and
generating HTML out of it.


 Please let me know if my understanding is incorrect and we are ready to extend
any help in this regard.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to