3
# This program generates a simple HTML document from a text file.
5
# Written by: Alex Burger
6
# Date: March 18th, 2004
9
# Set to 1 to use fixed width font (<tt>)
12
open (FILE, @ARGV[0]) || die "Could not open file \'@ARGV[0]\'. $!";
15
print '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">' . "\n";
16
print '<html>' . "\n";
17
print '<head>' . "\n";
18
print "<title></title>\n";
19
print '</head>' . "\n";
20
print '<body>' . "\n";
21
if ($fixed_width == 1) {
28
while ($line = <FILE>) {
30
$line =~ s/&/\&/g;
33
$line =~ s/\"/\"/g;
35
if ($fixed_width == 1) {
45
print "$line<br />\n";
49
if ($fixed_width == 1) {