Tables from FrameMaker include extra inline styles

This forum is for all Flare issues related to importing files or projects.
Post Reply
GregStenhouse
Sr. Propeller Head
Posts: 330
Joined: Tue May 13, 2008 3:27 pm
Location: Christchurch, New Zealand

Tables from FrameMaker include extra inline styles

Post by GregStenhouse »

Every table from FrameMaker, even though Preserve Table Styles is turned off and the table is exactly as defined in the FrameMaker table designer, imports with a bunch of extra inline styles. For example,

Code: Select all

<table cellpadding="0" cellspacing="0" class="Default" height="357px" style="border-spacing-x: 0;border-spacing-y: 0;border-color: black;width: 401px;caption-side: top;">
One side effect: with webhelp viewed in Firefox, there is no cell padding as Firefox is applying the inline style rather than the CSS cell padding (IE6 and the Flare preview seem OK).
I can work around this by adding !important to the CSS style, but would prefer it if tables came in clean (with just the class) so I had more control.

Is anyone else experiencing this?

Cheers
Greg
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Tables from FrameMaker include extra inline styles

Post by NorthEast »

Yep, I had this problem when I converted my FM projects (using Flare v3).

Unfortunately I don't have a solution that fixes this for the import, I had to fix it after importing. I used a find and replace tool (FAR HTML) to strip out all the inline styles and set all my tags to plain <table> tags.

I was doing a one-way conversion though, so I didn't need to update the files from the FM source (if I did, I'd need to re-run the find and replace each time I reimported).
GregStenhouse
Sr. Propeller Head
Posts: 330
Joined: Tue May 13, 2008 3:27 pm
Location: Christchurch, New Zealand

Re: Tables from FrameMaker include extra inline styles

Post by GregStenhouse »

Thanks for that Dave. I'll raise an issue. In the meantime we can work around it using !Important references in the CSS to ignore inline styles.

Cheers
Greg
Post Reply