summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-05 15:21:24 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-05 15:21:24 (EST)
commitebdebd07fceb874eb81abc550434416731912206 (patch)
treeed57ea850c5a95659d524c6a39ef0655ce5c75e8 /src
parente6971351fa10a94f63e6b75d69d4baa5d4218c62 (diff)
downloadmarquee-ebdebd07fceb874eb81abc550434416731912206.zip
marquee-ebdebd07fceb874eb81abc550434416731912206.tar.gz
marquee-ebdebd07fceb874eb81abc550434416731912206.tar.bz2
mq_html_document_v(): Add global styles to document
This should have been in commit c7bf27f.
Diffstat (limited to 'src')
-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) {