Skip to content

Commit

Permalink
#653 Pretty print JSON in Open Board exports
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvansson committed Jul 1, 2020
1 parent 13d523b commit 8f7a8e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Settings/Export/Export.helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export async function openboardExportAdapter(boards = [], intl) {
continue;
}

zip.file(boardMapFilename, JSON.stringify(obf));
zip.file(boardMapFilename, JSON.stringify(obf, null, 2));

const imagesKeys = Object.keys(images);
imagesKeys.forEach(key => {
Expand All @@ -454,7 +454,7 @@ export async function openboardExportAdapter(boards = [], intl) {
}
};

zip.file('manifest.json', JSON.stringify(manifest));
zip.file('manifest.json', JSON.stringify(manifest, null, 2));

zip.generateAsync(CBOARD_ZIP_OPTIONS).then(content => {
if (content) {
Expand Down

0 comments on commit 8f7a8e1

Please sign in to comment.