#!/usr/bin/perl
# Copyyright imagemagick LCC
# under imagemagick license
print "
ImageMagick Changelog
\n";
print "";
while (<>)
{
chomp();
s/\&(?!amp;)/\&/g;
s/\</g;
s/>/\>/g;
if (/^[^ ]/)
{
print "- $_
\n - ";
$_=<>;
chomp();
s/^ *\*//;
s/\&(?!(?:amp|lt|gt);)/\&/g;
s/\</g;
s/>/\>/g;
print;
next;
}
if (/^$/)
{
print "
\n";
next;
}
print "\n - " if /^ *\*/;
s/^ *\*//;
print "$_";
}
print "
";