- if (i)
- ds_put_byte (&body, ',');
-
- size_t idx = value->footnote_indexes[i];
- pivot_footnote_format_marker (pt->footnotes[idx], pt, &body);
+ const struct pivot_footnote *f
+ = pt->footnotes[value->footnote_indexes[i]];
+ if (f->show)
+ {
+ if (n_footnotes++)
+ ds_put_byte (&body, ',');
+ pivot_footnote_format_marker (f, pt, &body);
+ }