Skip to main content
Participating Frequently
December 1, 2010
Question

RoboHelp overwrites table formatting code when importing htm files

I am using RH8 and have installed the patch up to 8.0.2.208.  Most of the files for the project are htm files that are being imported.  These files include tables formatted using <table style=”border-collapse: collapse” width=”100%” border=”2” bordercolor=”#dddddd”>.  The files display fine with a single (collapsed) border before importing to RH. However, after bringing them into RH (or copying/pasting the code), the tables are automatically being reformatted with an additional ‘border-collapse’ clause.  The statement is automatically changed to the following: <table style=”border-collapse: collapse; border-collapse: separate;” width=”100%” border=”2” bordercolor=”#dddddd”>.  The result is a table with a double (separated) border.  Can anyone explain why RH adds in the additional information that over-rides the original code and adds in the ‘border-collapse: separate’ code?  Other than creating a style sheet with a class statement, is there anything in RH that can be set to avoid the automatic change to the code upon importing the htm files?  Thanks, AdjunctInstr2000

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Peter Grainge
Community Expert
Community Expert
December 1, 2010

I have seen this with other HTML editors in preview. If you generate the output, is the table correct then?


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Translate
Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Participating Frequently
December 1, 2010

Thank you for your reply. The problem appears in the generated output.

Our next test will involve putting everything in a style sheet (which we

got to work once), then stopped. I hope to complete my testing this

morning and will follow up with our findings.

Thanks again,

Wanda Mally

I have seen this with other HTML editors in preview. If you generate the

output, is the table correct then?

 

----

See http://www.grainge.org for RoboHelp and Authoring tips

 

http://www.grainge.org/twitter.jpg http://twitter.com/petergrainge

>

Translate
Peter Grainge
Community Expert
Community Expert
December 1, 2010

I'm wondering if this would be the simpler solution.

Create a table with the required borders using RoboHelp's table editor (good luck with that but it does create a CSS table style).

Once you have a CSS table style that works as you want, go to another table and put the cursor in it.

Click Tables > Table Styles and select the table. Make sure you tick Remove Inline Styling. Your table should then appear as per the CSS.

OR look at http://www.grainge.org/pages/authoring/tables/table_borders.htm

It applies to RoboHelp 7 but the details may prove useful.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Translate
Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.