the space is being added between them due to blank columns in your data base.
you will need to add an if statemetnt around the <tr> code to only display the row if there is a value in that column in the database.
For example, change:
<tr class="<?php echo $WARRT_AltClass1->getClass(true); ?>">
<td bgcolor="#FFFFFF" class="WADAResultsTableCell"><strong><?php echo $row_WADAnorthstar['line_name1']; ?></strong> <?php echo $row_WADAnorthstar['line_desc1']; ?> <?php echo $row_WADAnorthstar['class1']; ?></td>
</tr>
to:
<?php if(($row_WADAnorthstar['line_name1'] != "" && $row_WADAnorthstar['line_name1'] != NULL) || ($row_WADAnorthstar['line_desc1'] != "" && $row_WADAnorthstar['line_desc1'] != NULL)) { ?>
<tr class="<?php echo $WARRT_AltClass1->getClass(true); ?>">
<td bgcolor="#FFFFFF" class="WADAResultsTableCell"><strong><?php echo $row_WADAnorthstar['line_name1']; ?></strong> <?php echo $row_WADAnorthstar['line_desc1']; ?> <?php echo $row_WADAnorthstar['class1']; ?></td>
</tr>
<?php } ?>