summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/utils/html.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/html.c b/src/utils/html.c
index 4efaa2a..5ee7313 100644
--- a/src/utils/html.c
+++ b/src/utils/html.c
@@ -255,6 +255,7 @@ mq_html_document_v(const gchar *title, const gchar *styles, gchar **children)
len += strlen("\">\n<head>\n<meta charset=\"utf-8\">\n<title>");
len += strlen(title);
len += strlen("</title>\n<style>\n");
+ len += strlen(global_styles);
len += strlen(styles);
len += strlen("</style>\n</head>\n<body>\n");
for (i = 0; children && children[i]; ++i) {
@@ -271,6 +272,7 @@ mq_html_document_v(const gchar *title, const gchar *styles, gchar **children)
ptr = g_stpcpy(ptr, "\">\n<head>\n<meta charset=\"utf-8\">\n<title>");
ptr = g_stpcpy(ptr, title);
ptr = g_stpcpy(ptr, "</title>\n<style>\n");
+ ptr = g_stpcpy(ptr, global_styles);
ptr = g_stpcpy(ptr, styles);
ptr = g_stpcpy(ptr, "</style>\n</head>\n<body>\n");
for (i = 0; children && children[i]; ++i) {