\n";
} elseif ($ret !== '') {
- //close last item
+ //close previous item
$ret .= "\n";
}
@@ -1694,7 +1695,7 @@ function html_TOC($toc){
$out .= $lang['toc'];
$out .= ''.DOKU_LF;
$out .= ''.DOKU_LF;
- $out .= html_buildlist($toc,'toc','html_list_toc');
+ $out .= html_buildlist($toc,'toc','html_list_toc','html_li_default',true);
$out .= '
'.DOKU_LF.''.DOKU_LF;
$out .= ''.DOKU_LF;
return $out;