--- didiwiki-0.3/src/wiki.c 2004-08-10 23:39:24.000000000 +0800 +++ didiwiki/src/wiki.c 2004-09-02 10:10:56.000000000 +0800 @@ -214,7 +214,8 @@ wiki_print_data_as_html(HttpResponse *re int strikethrough_on = 0; int open_para = 0; int pre_on = 0; - int list_depth = 0; + int ulist_depth = 0; + int olist_depth = 0; int table_on = 0; q = p; /* p accumalates non marked up text, q is just a pointer @@ -243,31 +244,65 @@ wiki_print_data_as_html(HttpResponse *re while ( *line == '*' ) { line++; item_depth++; } - if (item_depth < list_depth) + if (item_depth < ulist_depth) { - for (i = 0; i < (list_depth - item_depth); i++) + for (i = 0; i < (ulist_depth - item_depth); i++) http_response_printf(res, "\n"); } else { - for (i = 0; i < (item_depth - list_depth); i++) + for (i = 0; i < (item_depth - ulist_depth); i++) http_response_printf(res, "