/$1; text-indent: 10px">/ig;
}
}
# Inserts word spacing entities within in-line styles
sub addWordSpacing
{
foreach my $line (@htmlFile)
{
$line =~ s/( [^<.*?>]/$1; word-spacing: 10px">/ig;
$line =~ s/( /$1; letter-spacing: 2px">/ig;
}
}
# Removes image tag in array
sub scrapImageTag
{
foreach my $line (@htmlFile)
{
$line =~ s///ig;
}
}
# Print array to DOS window
sub printHTML
{
for my $i (0..@htmlFile-1)
{
print $htmlFile[$i];
}
}
# Replacing original file with reformatted file!
open (OUTFILE, ">E:/Documents and Settings/Richard Lamb/My Documents/HTML/test1InLineCSS.html") or die("$1: Can't rewrite the HTML file.\n");
print (OUTFILE @htmlFile);
close (OUTFILE);
# printHTML(); # sub called to print array in DOS window