developer-manual: Add more build instructions for Debian
[privoxy.git] / utils / changelog2doc.pl
index f8a3b07..a81f80c 100755 (executable)
@@ -2,8 +2,6 @@
 
 ##########################################################################
 #
-# $Id: changelog2doc.pl,v 1.2 2008/09/26 16:49:09 fabiankeil Exp $
-#
 # Filter to parse the ChangeLog and translate the changes for
 # the most recent version into something that looks like markup
 # for the documentation but still needs fine-tuning.
@@ -41,7 +39,7 @@ sub read_entries() {
         next unless $section_reached;
         next if /^\s*$/;
 
-        if (/^(\s*)-/) {
+        if (/^(\s*)- /) {
             my $indentation = length($1);
             if ($i > 1 and $entries[$i]{indentation} > $indentation) {
                 $entries[$i]{last_list_item} = 1;
@@ -86,6 +84,7 @@ sub create_listitem_markup($) {
     } else {
         if (defined $entry->{last_list_item}) {
             $markup .= $lws . " </para>\n";
+            $markup .= $lws . " </listitem>\n";
             $markup .= $lws . "</itemizedlist>\n";
             $lws = $default_lws;
         }