Bad renaming of copied table style

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
crdmerge
Sr. Propeller Head
Posts: 248
Joined: Tue Dec 16, 2008 5:37 am

Bad renaming of copied table style

Post by crdmerge »

Heads up!

If you make a copy of a table style, and then rename the copy, none of the style declarations inside the style sheet get changed. For example:

1. Copy PlainTable.css.
2. Paste it and rename it to TestTable.css.
3. Open TestTable.css in the Internal Text Editor.

All TableStyles are labeled ".TableStyle-PlainTable" (the old name), and the code for a table using the new style is this (note the class="TableStyle-PlainTable" and the ('Resources/TableStyles/TestTable.css'):

Code: Select all

<table class="TableStyle-PlainTable" style="mc-table-style: url('Resources/TableStyles/TestTable.css'); margin-left: 0; margin-right: auto;" cellspacing="0" 
xmlns="http://www.w3.org/1999/xhtml">
The result is this: if I then add styling (such as for a bullet list) in my default CSS file, using the ".TableStyle-TestTable" I would not be be affecting the new table styles.

Code: Select all

.TableStyle-TestTable .BodyA-Column1-Body1 ul,
.TableStyle-TestTable .BodyB-Column1-Body1 ul,
.TableStyle-TestTable .BodyC-Column1-Body1 ul,
.TableStyle-TestTable .BodyD-Column1-Body1 ul,
.TableStyle-TestTable .BodyE-Column1-Body1 ul,
.TableStyle-TestTable .BodyF-Column1-Body1 ul,
.TableStyle-TestTable .BodyG-Column1-Body1 ul,
.TableStyle-TestTable-Column1-Body1 ul,
.TableStyle-TestTable .BodyI-Column1-Body1 ul
{
	list-style-type: square;
	margin-top: 0px;
	padding-top: 0px;
	padding-left: 15px;
	margin-left: 15px;
}
The workaround is to manually replace all TableStyle-PlainTable occurrences in the TestTable.css with TableStyle-TestTable, so that I can set my styles to affect only the new table style.

Reported to MadCap (case 33091, report 49700). I sincerely hope that they can fix this egregious error without requiring multiple users issuing bug reports.
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Bad renaming of copied table style

Post by NorthEast »

It will 'refresh' the styles if you edit it in the table stylesheet editor.
So after copying/renaming the file, open it in the table stylesheet editor and make some changes (e.g. change something, then change it back).
crdmerge
Sr. Propeller Head
Posts: 248
Joined: Tue Dec 16, 2008 5:37 am

Re: Bad renaming of copied table style

Post by crdmerge »

Yeah, Dave, I just got a reply from Support, saying the same thing. Kinda like whacking a mule in the head with an axe handle, to get its attention! :wink:

Support also decided to change the issue from a feature request (what?) to a bug (yes!).


Leon
Post Reply