",
formatFilesize([fileAttributes[NSFileSize] floatValue]),
NSLocalizedString(separatorDesc, nil),
NSLocalizedString(@"Separated", nil),
humanReadableFileEncoding(stringEncoding)
];
// add the table rows
BOOL altRow = NO;
for (CSVRowObject *row in csvDoc.rows) {
[html appendFormat:@"| ", altRow ? @" class=\"alt_row\"" : @""];
[html appendString:[row columns:csvDoc.columnKeys combinedByString:@" | "]];
[html appendString:@" | \n"];
altRow = !altRow;
}
[html appendString:@"
\n"];
// not all rows were parsed, show hint
if (numRowsParsed > MAX_ROWS) {
NSString *rowsHint = [NSString stringWithFormat:NSLocalizedString(@"Only the first %i rows are being displayed", nil), MAX_ROWS];
[html appendFormat:@"