I'm using RH9 for help projects originally created with RoboHelp X5. When I generate .chm, roughly half of the pages lose their .css styles (font changes, background color disappears etc.). This can be cured by opening the topic in RH via Project Manager, then right-clicking and selecting "Properties". In the Appearance tab I re-select necessary Style Sheet (although it is already selected - I select some other one and then back the one I need, then 'Apply' button becomes active), and click OK. After that I save the topic and regenerate .chm. Only after that the topic looks good in the .chm. The problem is that this procedure needs to be applied to every single topic file that is displayed incorrectly. If I don't open the topic before I click 'Properties' and save it after, it doesnt't work. If I select multiple topics in the Topic List view and click 'Properties, it doesn't work either. I have several thousand topics in the project and I can't say which ones need to be repaired before I build .chms.
Is there a faster solution to this problem than processing all files manually?
Perhaps check the code for a problem topic (outside Robohelp) and see if the stylesheet reference has type="text/css". If not, you could try running a search and replace to add that to the link reference. Not sure if this occurs in RH9, but not hard to check.
old: <link rel="StyleSheet" href="styles.css" type="" />
new: <link rel="StyleSheet" href="styles.css" type="text/css" />