'Format the specified records and return the result as a string.'

def format(self, records):

    rv = ''
    if (len(records) > 0):
        rv = (rv + self.formatHeader(records))
        for record in records:
            rv = (rv + self.linefmt.format(record))
        rv = (rv + self.formatFooter(records))
    return rv
