#! /usr/bin/env perl
use warnings;
print "
\n";
open( TODO, " )
{
if( /^\* (.*)$/ )
{
print "
\n\n" if( $inlist );
print "$1
\n";
$inlist = 0;
$initem = 0;
}
elsif( /^- (.*)$/ )
{
if( $initem ) { print ""; };
print "\n" if( ! $inlist );
$inlist = 1;
print "- $1\n";
$initem = 1;
}
else { print unless /^$/; }
};
print "
\n";