X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fhtml.c;h=60ca95e28dba029683e895dad42e0a7aac91c2a1;hb=b70dcc901c6b6b28a310ffc58aca13daa2a58d67;hp=e3483b4ebc9318a042cd7baaf9a207b1b6285c62;hpb=507ebaea36737618ef8265a60cd3e9005d9f3457;p=pspp diff --git a/src/output/html.c b/src/output/html.c index e3483b4ebc..60ca95e28d 100644 --- a/src/output/html.c +++ b/src/output/html.c @@ -302,9 +302,6 @@ html_submit__ (struct output_driver *driver, const struct output_item *item, case OUTPUT_ITEM_PAGE_BREAK: break; - case OUTPUT_ITEM_PAGE_SETUP: - break; - case OUTPUT_ITEM_TABLE: html_output_table (html, item); break; @@ -590,26 +587,26 @@ html_put_table_cell (struct html_driver *html, const struct pivot_table *pt, escape_string (html->file, s, " ", "
"); ds_destroy (&body); - if (cell->value->n_subscripts) + const struct pivot_value_ex *ex = pivot_value_ex (cell->value); + if (ex->n_subscripts) { fputs ("", html->file); - for (size_t i = 0; i < cell->value->n_subscripts; i++) + for (size_t i = 0; i < ex->n_subscripts; i++) { if (i) putc (',', html->file); - escape_string (html->file, cell->value->subscripts[i], - " ", "
"); + escape_string (html->file, ex->subscripts[i], " ", "
"); } fputs ("
", html->file); } - if (cell->value->n_footnotes > 0) + if (ex->n_footnotes > 0) { fputs ("", html->file); size_t n_footnotes = 0; - for (size_t i = 0; i < cell->value->n_footnotes; i++) + for (size_t i = 0; i < ex->n_footnotes; i++) { const struct pivot_footnote *f - = pt->footnotes[cell->value->footnote_indexes[i]]; + = pt->footnotes[ex->footnote_indexes[i]]; if (f->show) { if (n_footnotes++ > 0)