I have been porting a CSS tabless design to Drupal phptemplate system. The layout works but not consistently. It only needs one closing </div> tag to be removed to screw up the layout. I have identified the source of the problem but not what bit of software coding is not printing the html correctly. In the node.tpl.php template the closing tag is stripped out or not printed. This only occurs when first entering/calling the index page of the website or when logging out of admin. Once other pages are called the </div> tag is not stripped out. Also when the index page is recalled from within the website the </div> tag is printed.

I have searched the bug list but have no idea what script is causing this bug and have been unable to search the list properly or what name it should be catergorised under for reporting.

Has anybody come across this problem? What's the solution or patch to fix it? It doesn't affect table based themes for obvious reasons so I presume this bug is rarely evident.

Drupal 5 is probably without this bug as I understand it comes with a tableless theme. However I would prefer to stick with Drupal 4.7 with its wider range of modules.

I hope someone knowledgeable finds this post. Thanks for your help.

All the best

Rory