RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1992695 - Writer produces HTML <td> tags with duplicate style attributes
Summary: Writer produces HTML <td> tags with duplicate style attributes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libreoffice
Version: 8.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: beta
: ---
Assignee: Caolan McNamara
QA Contact: Martin Krajnak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-11 15:23 UTC by Andrew Mike
Modified: 2022-05-10 13:51 UTC (History)
8 users (show)

Fixed In Version: libreoffice-6.4.7.2-6.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-10 13:31:48 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Document Foundation 132739 0 None None None 2021-08-11 15:23:58 UTC
Red Hat Issue Tracker RHELPLAN-93249 0 None None None 2021-08-11 15:27:36 UTC
Red Hat Knowledge Base (Solution) 6257641 0 None None None 2021-08-11 15:52:33 UTC
Red Hat Product Errata RHSA-2022:1766 0 None None None 2022-05-10 13:32:07 UTC

Description Andrew Mike 2021-08-11 15:23:59 UTC
Description of problem: 
When saving a table in LibreOffice Writer as HTML, the <td> tags are generated with two "style" attributes which is invalid HTML. This causes the table border rules included with the second style attribute to be ignored by a browser such as Firefox.

Version-Release number of selected component (if applicable):
6.4.7.2-5.el8 (also 5.3.6.1-25.el7_9)

How reproducible: 100%


Steps to Reproduce:
1. Launch LibreOffice Writer
2. Create a table with any number of rows and columns from "Table" -> "Insert Table"
3. Highlight the table and at the bottom set a background color for the table
4. With the table still highlighted, ensure all borders are turned on
5. Select "File" -> "Send" -> "Create HTML Document" and save the file

Actual results:
HTML file has two "style" attributes within the <td> tag.

Expected results:
HTML file has one "style" attributes within the <td> tag, with all specified formatting present.

Additional info:
- Reported upstream in Document Foundation Bugzilla 132739, linked below.
- This is also present in RHEL 7.9, as mentioned in the package release above.

Comment 3 Caolan McNamara 2021-08-12 11:59:46 UTC
my proposed fix: https://gerrit.libreoffice.org/c/core/+/120393

Comment 4 Martin Krajnak 2021-09-15 11:56:38 UTC
I was able to reproduce this bug on 8.4z, an I can confirm this is fixed by libreoffice-writer-6.4.7.2-6.el8.x86_64.

Comment 7 Martin Krajnak 2021-09-29 09:47:13 UTC
export_html_duplicit_style_attrs

Comment 9 errata-xmlrpc 2022-05-10 13:31:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: libreoffice security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1766


Note You need to log in before you can comment on or make changes to this bug.