From f6299d9fad21c065d1e4c0f1093770835fb73adf Mon Sep 17 00:00:00 2001 From: Burt P Date: Wed, 24 Oct 2018 00:41:16 -0500 Subject: params: html_ok -> markup_ok The html_ok param added in 970174b0897d40b804808632784ffa1544d9da93 is misleading. It turns out that it is not HTML, but Pango Markup that is used by GTK, and a subset of that happens to also work as HTML4 for the HTML report generation. This change renames html_ok to markup_ok in ProgramParameters and adds a comment explaining what common set of tags may be used. Also, if report generation happens as a fallback after GUI initialization failed, then also disable markup, unless report will be generated as HTML. Pango markup info at: https://developer.gnome.org/pango/stable/PangoMarkupFormat.html Signed-off-by: Burt P --- includes/hardinfo.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'includes/hardinfo.h') diff --git a/includes/hardinfo.h b/includes/hardinfo.h index ee886251..ab5507bd 100644 --- a/includes/hardinfo.h +++ b/includes/hardinfo.h @@ -53,7 +53,14 @@ struct _ProgramParameters { gboolean autoload_deps; gboolean run_xmlrpc_server; gboolean skip_benchmarks; - gboolean html_ok; /* ok to use html in the value part of a key/value */ + + /* + * OK to use the common parts of HTML(4.0) and Pango Markup + * in the value part of a key/value. + * Including the (b,big,i,s,sub,sup,small,tt,u) tags. + * https://developer.gnome.org/pango/stable/PangoMarkupFormat.html + */ + gboolean markup_ok; gint report_format; -- cgit v1.2.3