Skip to content

Commit

Permalink
Put plain text and rich text formats next to each other
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Jan 30, 2024
1 parent 5b65530 commit f8ffebb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/sidebar/components/ShareDialog/ExportAnnotations.tsx
Expand Up @@ -55,18 +55,18 @@ const exportFormats: ExportFormat[] = [
shortTitle: 'Text',
description: 'For import into word processors as plain text',
},
{
value: 'csv',
title: 'Table (CSV)',
shortTitle: 'CSV',
description: 'For import into a spreadsheet',
},
{
value: 'html',
title: 'Rich text (HTML)',
shortTitle: 'HTML',
description: 'For import into word processors as rich text',
},
{
value: 'csv',
title: 'Table (CSV)',
shortTitle: 'CSV',
description: 'For import into a spreadsheet',
},
];

function formatToMimeType(format: ExportFormat['value']): string {
Expand Down
Expand Up @@ -269,13 +269,13 @@ describe('ExportAnnotations', () => {
optionText(1, 'description'),
'For import into word processors as plain text',
);
assert.equal(optionText(2, 'name'), 'Table (CSV)');
assert.equal(optionText(2, 'description'), 'For import into a spreadsheet');
assert.equal(optionText(3, 'name'), 'Rich text (HTML)');
assert.equal(optionText(2, 'name'), 'Rich text (HTML)');
assert.equal(
optionText(3, 'description'),
optionText(2, 'description'),
'For import into word processors as rich text',
);
assert.equal(optionText(3, 'name'), 'Table (CSV)');
assert.equal(optionText(3, 'description'), 'For import into a spreadsheet');
});

[
Expand Down

0 comments on commit f8ffebb

Please sign in to comment.