https://bugs.documentfoundation.org/show_bug.cgi?id=145920
Bug ID: 145920
Summary: Table "styles" should not affect paragraph formatting
inside tables
Product: LibreOffice
Version: 7.2.2.2 release
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
# Part I: Preparation
1. Create a 3x3 table by using the button on the "Standard" toolbar.
2. Fill it with the text as follows:
-------------------------
| Cell1 | Cell2 | Cell3 |
-------------------------
| Cell4 | Cell5 | Cell6 |
-------------------------
| Cell7 | Cell8 | Cell9 |
-------------------------
3. Remove horizontal borders except the first and the last:
-------------------------
| Cell1 | Cell2 | Cell3 |
| Cell4 | Cell5 | Cell6 |
| Cell7 | Cell8 | Cell9 |
-------------------------
4. Open the Styles pane. Select the your table and click "New Style from
Selection" on the Style pane. Call it "My Table Style".
# Part II: Issues
5. Repeat the first step to create another one table.
6. Apply the "Table Heading" paragraph style to its first row, so that the text
in its first row is now bold and centered.
7. Apply the "My Table Style" to the table itself. Now you see the first issue:
The paragraph style of the first row has changed from "Table Heading" back to
"Table Contents"
8. Try to enforce the "Table Heading" style: apply it for the second time. Then
add or remove some row or column: ooops, your "Table Heading" was changhed nack
to "Table Contents" again.
# Part III: So what is wrong?
There are two issues (as you see above), but they are just one single problem.
This problem is that Writer treats paragraph formatting as a part of table
styles, and this is conceptually wrong.
Practically, since we often need to have tables that look the same (e.g., no
horizontal lines, or maybe no vertical lines) but some of these tables should
have a heading row and some of them should not have a heading row, we need to
have **two** table styles that are completely identical except of whether the
style formats the first row of tables as "Table Heading" or as "Table
Contents".
FWIW, Microsoft Word have a very clear way to create table styles, and as far
as I remember, there are no such issues there. It can be used as a reference.
Steps to Reproduce:
See above
Actual Results:
See above
Expected Results:
See above
Reproducible: Always
User Profile Reset: No
Additional Info:
See above
--
You are receiving this mail because:
You are the assignee for the bug.