--- clcms-org	2007-05-22 23:30:08.000000000 +0200
+++ clcms	2007-05-22 23:30:37.000000000 +0200
@@ -223,7 +223,8 @@
     if same_part != "" or prev_list_part != "":
         if prev_list_part != "":
             cur_depth += 1
-        html_lines.append((cur_depth * "\t") + "</li>\n");
+        if not len(list_part) == 1 and len(prev_list_part) == 0:
+            html_lines.append((cur_depth * "\t") + "</li>\n");
 
     # go back in lists 
     cur_depth = len(same_part)

