Skip to content
Snippets Groups Projects
Commit df52d0fe authored by andi's avatar andi
Browse files

xhtml fix for TOC (#133)

darcs-hash:20050214200723-9977f-b775f989baf16e1d445a638dca5de3ce3ce1f454.gz
parent 70787824
No related branches found
No related tags found
No related merge requests found
......@@ -762,7 +762,10 @@ function html_buildlist($data,$class,$func,$lifunc='html_li_default'){
if( $item['level'] > $level ){
//open new list
$ret .= "\n<ul class=\"$class\">\n";
for($i=0; $i<($item['level'] - $level); $i++){
if ($i) $ret .= "<li class=\"clear\">\n";
$ret .= "\n<ul class=\"$class\">\n";
}
}elseif( $item['level'] < $level ){
//close last item
$ret .= "</li>\n";
......
......@@ -520,6 +520,12 @@ ul.toc li {
padding-left:0.4em;
}
ul.toc li.clear {
/* background: transparent url(images/blank.gif) 0 0.6em no-repeat;*/
background-image: none;
padding-left:0.4em;
}
a.toc {
color: #436976;
text-decoration:none;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment