Hi

I was wondering if it is possible to make the code output by Drupal indent along with the XHTML of the page design? I am using a system of tabs to keep a track of parent items, and it would look really cool if the content generated by the CMS was also indented along with the parent items. Any advice appreciated.

Thanks

Comments

danmurf’s picture

Anyone?

coreyp_1’s picture

do you have a screenshot or, better yet, an example somewhere we can look at?

- Corey

danmurf’s picture

Sorry I don't at the moment, but I can try and get something together if it helps?

What I mean is I ident all my html code like this:

<div id="container">
     <div id="header">
          <h1 class="siteTitle"><span>My site</span></h1>
          <p class="slogan"><span>My site's slogan</span></p>
     </div>
</div>

etc. So when I add a part to the template which relates to the cms, can I make the code that the cms generates indent to the same level that the html is at?

bjornarneson’s picture

http://drupal.org/project/htmltidy may be a good place to start.