Skip to content

Commit 463a30e

Browse files
committed
Export with tabs instead of spaces for space savings
1 parent ff6ea7c commit 463a30e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/schemas.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export function toExport(cl: Checklist, nameOf: (id: string) => string | undefin
260260
}
261261

262262
export function serializeChecklist(cl: Checklist, nameOf: (id: string) => string | undefined): string {
263-
return JSON.stringify(toExport(cl, nameOf), null, 4);
263+
return JSON.stringify(toExport(cl, nameOf), null, "\t");
264264
}
265265

266266
function hydrateChecklistWithId(
@@ -326,7 +326,7 @@ export function toPackageExport(db: ChecklistDatabase): PackageExport {
326326
}
327327

328328
export function serializePackage(db: ChecklistDatabase): string {
329-
return JSON.stringify(toPackageExport(db), null, 4);
329+
return JSON.stringify(toPackageExport(db), null, "\t");
330330
}
331331

332332
export type PackageParseResult = { ok: true; database: ChecklistDatabase } | { ok: false; error: string };

0 commit comments

Comments
 (0)