aboutsummaryrefslogtreecommitdiff
path: root/shell/report.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2019-12-27 18:39:46 -0600
committerLeandro A. F. Pereira <leandro@hardinfo.org>2019-12-27 22:16:36 -0800
commite7dd39f9d227c5507e3789b18c7385bd3ea3cb8c (patch)
treef9b0e8115d8a2ab67f1d14f957879531459cd426 /shell/report.c
parent2d626b13c6180a1b3319c4dc9da57b4649063daa (diff)
fmt_opts param for pango/html/text formatting
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'shell/report.c')
-rw-r--r--shell/report.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/report.c b/shell/report.c
index 5bb60e0d..cbe4b4d6 100644
--- a/shell/report.c
+++ b/shell/report.c
@@ -929,6 +929,9 @@ static gboolean report_generate(ReportDialog * rd)
gchar *file;
FILE *stream;
+ int old_fmt_opts = params.fmt_opts;
+ params.fmt_opts = FMT_OPT_NONE; // FIXME: FMT_OPT_HTML for HTML
+
if (!(file = report_get_filename()))
return FALSE;
@@ -943,6 +946,7 @@ static gboolean report_generate(ReportDialog * rd)
g_warning(_("Cannot create ReportContext. Programming bug?"));
g_free(file);
fclose(stream);
+ params.fmt_opts = old_fmt_opts;
return FALSE;
}
@@ -984,6 +988,7 @@ static gboolean report_generate(ReportDialog * rd)
report_context_free(ctx);
g_free(file);
+ params.fmt_opts = old_fmt_opts;
return TRUE;
}