Skip to content

Commit f2f4c0b

Browse files
committed
Clean up
1 parent 93905f7 commit f2f4c0b

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

src/io/files.js

-34
Original file line numberDiff line numberDiff line change
@@ -2037,40 +2037,6 @@ function files(p5, fn){
20372037
if (ext !== 'html') {
20382038
const output = table.toString(sep);
20392039
pWriter.write(output);
2040-
// make header if it has values
2041-
// if (header[0] !== '0') {
2042-
// for (let h = 0; h < header.length; h++) {
2043-
// if (h < header.length - 1) {
2044-
// pWriter.write(header[h] + sep);
2045-
// } else {
2046-
// pWriter.write(header[h]);
2047-
// }
2048-
// }
2049-
// pWriter.write('\n');
2050-
// }
2051-
2052-
// // make rows
2053-
// for (let i = 0; i < table.rows.length; i++) {
2054-
// let j;
2055-
// for (j = 0; j < table.rows[i].arr.length; j++) {
2056-
// if (j < table.rows[i].arr.length - 1) {
2057-
// //double quotes should be inserted in csv only if contains comma separated single value
2058-
// if (ext === 'csv' && String(table.rows[i].arr[j]).includes(',')) {
2059-
// pWriter.write('"' + table.rows[i].arr[j] + '"' + sep);
2060-
// } else {
2061-
// pWriter.write(table.rows[i].arr[j] + sep);
2062-
// }
2063-
// } else {
2064-
// //double quotes should be inserted in csv only if contains comma separated single value
2065-
// if (ext === 'csv' && String(table.rows[i].arr[j]).includes(',')) {
2066-
// pWriter.write('"' + table.rows[i].arr[j] + '"');
2067-
// } else {
2068-
// pWriter.write(table.rows[i].arr[j]);
2069-
// }
2070-
// }
2071-
// }
2072-
// pWriter.write('\n');
2073-
// }
20742040
} else {
20752041
// otherwise, make HTML
20762042
pWriter.print('<html>');

0 commit comments

Comments
 (0)