Skip to content

Commit e0166c1

Browse files
committed
update decimals formatting logic
Signed-off-by: worksofliam <[email protected]>
1 parent 337d63f commit e0166c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ui/dspf.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export class DisplayFile {
361361
}, [] as Conditional[][]);
362362
}
363363

364-
private static getLinesForKeyword(keyword: Keyword): string[] {
364+
public static getLinesForKeyword(keyword: Keyword): string[] {
365365
const lines: string[] = [];
366366

367367
// Convert array into groups of three
@@ -409,7 +409,7 @@ export class DisplayFile {
409409
} else if (displayType && field.name) {
410410
const definitionType = field.type;
411411
const length = String(field.length).padStart(5);
412-
const decimals = String(field.decimals).padStart(2);
412+
const decimals = (field.type !== `A` ? String(field.decimals) : ``).padStart(2);
413413
newLines.push(
414414
` A ${conditionStrings} ${field.name.padEnd(10)} ${length}${definitionType}${decimals}${displayType}${y}${x}`,
415415
);

0 commit comments

Comments
 (0)