at the start of the file, have your
first code i.e.
Code:
"<html>"
"<head>"
"<title>Mainframe Printout" & Date "</title>"
"</head>"
"<body>"
then at the end of each line, add the
<br> tag

then at the end :
Code:
"</body>"
"</html>"
did this help?