diff options
author | Burt P <pburt0@gmail.com> | 2019-12-27 21:45:27 -0600 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-12-27 22:16:36 -0800 |
commit | ab7cbe4878b261b6719196939010371e3813dba4 (patch) | |
tree | f115d3d9b0c1cc5ff529ffc479316e59fdec4546 /shell/report.c | |
parent | 9ecdea9986baae8766009dd5b921908c794aa621 (diff) |
report: set fmt_opts for HTML reports
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'shell/report.c')
-rw-r--r-- | shell/report.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/report.c b/shell/report.c index cbe4b4d6..ccd75c99 100644 --- a/shell/report.c +++ b/shell/report.c @@ -889,6 +889,9 @@ void report_context_free(ReportContext * ctx) void report_create_from_module_list(ReportContext * ctx, GSList * modules) { + if (ctx->format == REPORT_FORMAT_HTML) + params.fmt_opts = FMT_OPT_HTML; + report_header(ctx); report_create_inner_from_module_list(ctx, modules); @@ -930,7 +933,7 @@ static gboolean report_generate(ReportDialog * rd) FILE *stream; int old_fmt_opts = params.fmt_opts; - params.fmt_opts = FMT_OPT_NONE; // FIXME: FMT_OPT_HTML for HTML + params.fmt_opts = FMT_OPT_NONE; if (!(file = report_get_filename())) return FALSE; |