<td align="right">""" + ('Yes' if drives[1].usingTowbar else 'No') + """</td> <td align="right">""" + str(drives[1].getCost()) + """</td> </tr>""" if len(drives) > 2: for drive in drives[2:]: text += """ <tr> <td></td> <td>""" + str(drive.date) + """</td> <td align="right">""" + str(drive.distance) + """</td> <td align="right">""" + ('Yes' if drive.isMember else 'No') + """</td> <td align="right">""" + ('Yes' if drive.usingTowbar else 'No') + """</td> <td align="right">""" + str(drive.getCost()) + """</td> </tr>""" else: text += """ <tr> <td><a href="mailto:""" + drives[0].email + """">""" + drives[ 0].email + """</a></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr>""" text += """ <tr style="height:20px">