https://bugs.documentfoundation.org/show_bug.cgi?id=164639
Bug ID: 164639
Summary: Writer ignores table styles defined inside styles.xml
Product: LibreOffice
Version: 24.8.4.2 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
Automatic styles for table elements (columns, rows, cells, table itself)
defined inside the styles.xml file are ignored by LibreOffice Writer. The same
style defined inside of content.xml is correctly applied instead.
For example, a very simple table style defining an orange background:
<style:style style:name="SampleTableStyle" style:family="table">
<style:table-properties fo:background-color="#ffb66c">
</style:table-properties>
</style:style>
defined inside the <office:automatic-styles> tag in content.xml and applied to
a table
<table:table table:name="SampleTable" table:style-name="SampleTableStyle">
<table:table-column />
<!-- rest of the table -->
</table:table>
correctly produces a table with an orange background when viewed inside
LibreOffice Writer.
The same style defined inside styles.xml (and an empty
<office:automatic-styles> tag in content.xml) leads to a table with a default
white background.
Reading the ODT 1.3 specification I can not find any mention of table style
definitions only being allowed as part of content.xml.
Steps to Reproduce:
1. Create a table inside of content.xml and assign a style to one of its
elements.
2. Define the newly assigned style inside the <office:automatic-styles> tag in
the content.xml file.
3. Build an ODT file which includes content.xml.
4. Create a styles.xml file and copy the style definition found in content.xml.
5. Remove the style definition from content.xml.
6. Build a second ODT file including both content.xml and styles.xml.
Actual Results:
The first ODT file (the one including only content.xml) shows the style
correctly applied to the table element, while the second where the style
definition has been moved to the styles.xml file shows a table lacking any
style.
Expected Results:
Both files should display identically.
Reproducible: Always
User Profile Reset: No
Additional Info:
Version: 24.8.4.2 (X86_64)
Build ID: 480(Build:2)
CPU threads: 16; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: it-IT (en_GB.UTF-8); UI: en-US
Calc: threaded
--
You are receiving this mail because:
You are the assignee for the bug.