Table Cell Content Style problem

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
sarrantsvt
Propeller Head
Posts: 47
Joined: Mon Jun 28, 2021 8:02 am

Table Cell Content Style problem

Post by sarrantsvt »

I have a problem setting the Cell Content Style in Column 1 and Column 2 for a table. The table is always 1 row with two columns. I've set the Cell Content Style for the first column to be

Code: Select all

cell-content-style-tag: p;
cell-content-style-class: AgilentCaution;
and for the second column to be

Code: Select all

cell-content-style-tag: p;
cell-content-style-class: notepara;
When I insert the table and apply the table style, I get the first row with no styling. Every row after that has the correct styling as you can see.
What am I doing wrong?
tab2.png
You do not have the required permissions to view the files attached to this post.
Doing Online Help since 1990. I remember "dots" .........
Got a bug? https://www.madcapsoftware.com/feedback/bugs/
Got a suggestion? https://www.madcapsoftware.com/feedback ... quest.aspx
robdocsmith
Sr. Propeller Head
Posts: 271
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: Table Cell Content Style problem

Post by robdocsmith »

How are you inserting a new table?

I find if I click on the Insert Table icon and then specify in the dialog the dimensions and style I get styling for all rows correctly - each cell has the relevant <p> tag inserted
If I drag out a table to the dimensions I want using the little down arrow under the icon and then apply a table style to the basic table, I don't get the <p> tags.

My guess is that Flare can't add <p> tags after a basic table has been created as it can't guarantee what is in each table cell. If you've a cell with no <p> tags, you can always press return and get a <p> tag in the cell. Then you'd have to style the paragraph appropriately by hand.

If you're sure you're never going to put <p> tags inside table cells for this type of table, I wouldn't use a cell style at all and just embed the font/size characteristics in the definition of the table. That way they should always be applied when the table style is applied.

If you do use <p> tags, or sometimes use them, make sure to always click the Insert Table icon and create the table from the dialog. Or as I think has been mentioned before, create a snippet of the 'perfectly defined' table, insert the snippet and then right click it and Convert to Text. Then you've got your table ready to go. This is a good way to have a library of page elements that won't easily get overwritten or changed.

Rob
ChoccieMuffin
Senior Propellus Maximus
Posts: 2650
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Table Cell Content Style problem

Post by ChoccieMuffin »

Another possible workaround could be to get a table that is formatted as you want it to be, and then create a snippet from it. Every time you want to use that table, insert the snippet, convert the snippet to text and use as normal.
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Post Reply