Skip to content

Commit

Permalink
Merge pull request #1620 from silx-kit/var-length
Browse files Browse the repository at this point in the history
Make variable-length string types explicit in metadata viewer
  • Loading branch information
axelboc authored Apr 22, 2024
2 parents c34f4a5 + 66d20af commit 2374a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app/src/metadata-viewer/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export function renderType(type: DType): string {

if (type.class === DTypeClass.String) {
const { length, charSet } = type;
return `${charSet ? `${charSet} string` : 'String'}${
length !== undefined ? `, ${length} characters` : ''
return `${charSet ? `${charSet} string` : 'String'}, ${
length === undefined ? 'variable length' : `${length} characters`
}`;
}

Expand Down

0 comments on commit 2374a82

Please sign in to comment.