Correcting a formatting error for scalars when dumping with ncdump -f

This commit is contained in:
Ward Fisher 2020-04-28 15:49:03 -06:00
parent 3a9c192a83
commit ffa30d21c2

View File

@ -506,12 +506,12 @@ print_rows(
} }
} }
if (formatting_specs.full_data_cmnts) { if (formatting_specs.full_data_cmnts) {
for (j = 0; j < marks_pending; j++) { for (j = 0; j < marks_pending; j++) {
sbuf_cat(sb, RBRACE); sbuf_cat(sb, RBRACE);
} }
printf("%s", sbuf_str(sb)); printf("%s", sbuf_str(sb));
lastdelim (0, lastrow); lastdelim (0, lastrow);
annotate (vp, cor, d0-1); annotate (vp, cor, (d0 > 0 ? d0-1 : d0));
} else { } else {
for (j = 0; j < marks_pending; j++) { for (j = 0; j < marks_pending; j++) {
sbuf_cat(sb, RBRACE); sbuf_cat(sb, RBRACE);