--- cfmaps/cfmap2html 2005/11/18 11:15:53 1.4 +++ cfmaps/cfmap2html 2005/11/18 12:04:12 1.5 @@ -11,6 +11,8 @@ umask 022; +our $VERSION = '1.0'; + sub escape_html($) { local $_ = shift; s/([<>&])/sprintf "&#%d;", ord $1/ge; @@ -18,7 +20,7 @@ } for my $path (@ARGV) { - print "$path\n"; +# print STDERR "$path\n"; if (!-e "$path.png" || !-e "$path.pst" @@ -75,7 +77,7 @@ ""; print "", - "", + print "$path[-1]", + "", + "

[more about cfmaps.schmorp.de]

", + "", "", - ""; - print "", + "", + "", "", - ""; - print ""; + "$tile[2]", + ""; my $W1 = $W + 600; - print "

[about cfmaps.schmorp.de]

"; print "

", escape_html $meta->{info}{msg}, "

"; @@ -112,34 +116,47 @@ for my $x (0.. $meta->{width} - 1) { print ""; if (my $as = $meta->{map}[$x][$y]) { - print "
($x|$y)
"; + + print_archs $as; + print ""; } print ""; } print ""; } - print "

"; + print "


created by cfmap2html version $VERSION

", + "

"; close $fh;